Class RabbitSender

java.lang.Object
org.localify.data.dispatch.RabbitSender

@Component public class RabbitSender extends Object
A service for sending messages to RabbitMQ queues.
  • Constructor Details

    • RabbitSender

      public RabbitSender(org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate)
      Constructs a new RabbitSender.
      Parameters:
      rabbitTemplate - The RabbitMQ template.
  • Method Details

    • sendBitMessage

      public void sendBitMessage(Object msg, String type, int priority)
      Sends a message to the BandsInTown request queue.
      Parameters:
      msg - The message to send.
      type - The type of the message.
      priority - The priority of the message.
    • sendPollstarMessage

      public void sendPollstarMessage(Object msg, String type, int priority)
      Sends a message to the Pollstar request queue.
      Parameters:
      msg - The message to send.
      type - The type of the message.
      priority - The priority of the message.
    • sendGoogleMessage

      public void sendGoogleMessage(Object msg, String type, int priority)
      Sends a message to the Google request queue.
      Parameters:
      msg - The message to send.
      type - The type of the message.
      priority - The priority of the message.
    • sendSpotifyMessage

      public void sendSpotifyMessage(Object msg, String type, int priority)
      Sends a message to the Spotify request queue.
      Parameters:
      msg - The message to send.
      type - The type of the message.
      priority - The priority of the message.