Package org.localify.data.dispatch
Class RabbitSender
java.lang.Object
org.localify.data.dispatch.RabbitSender
A service for sending messages to RabbitMQ queues.
-
Constructor Summary
ConstructorsConstructorDescriptionRabbitSender(org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate) Constructs a new RabbitSender. -
Method Summary
Modifier and TypeMethodDescriptionvoidsendBitMessage(Object msg, String type, int priority) Sends a message to the BandsInTown request queue.voidsendGoogleMessage(Object msg, String type, int priority) Sends a message to the Google request queue.voidsendPollstarMessage(Object msg, String type, int priority) Sends a message to the Pollstar request queue.voidsendSpotifyMessage(Object msg, String type, int priority) Sends a message to the Spotify request queue.
-
Constructor Details
-
RabbitSender
public RabbitSender(org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate) Constructs a new RabbitSender.- Parameters:
rabbitTemplate- The RabbitMQ template.
-
-
Method Details
-
sendBitMessage
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
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
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
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.
-