Class MessageDeliveryService

java.lang.Object
com.minicrm.mini_crm_api.services.MessageDeliveryService

@Service public class MessageDeliveryService extends Object
Service responsible for sending messages to the external vendor.
  • Constructor Details

    • MessageDeliveryService

      public MessageDeliveryService()
  • Method Details

    • sendMessage

      @Async public void sendMessage(Customer customer, CommunicationLog log)
      Asynchronously sends a message to the external vendor for delivery.
      Parameters:
      customer - The customer to whom the message is being sent.
      log - The communication log entry associated with this message.