Class CampaignEventPublisher

java.lang.Object
com.minicrm.mini_crm_api.messaging.CampaignEventPublisher

@Service public class CampaignEventPublisher extends Object
A dedicated service for publishing campaign-related events to RabbitMQ.
  • Constructor Details

    • CampaignEventPublisher

      public CampaignEventPublisher()
  • Method Details

    • publishCampaignProcessEvent

      public void publishCampaignProcessEvent(String campaignId)
      Publishes an event to the message queue, indicating that a new campaign needs to be processed by a background worker.
      Parameters:
      campaignId - The ID of the newly created campaign.