ca.gc.aafc.dina.messaging.consumer.RabbitMQMessageConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dina-messaging Show documentation
Show all versions of dina-messaging Show documentation
Base DINA messaging classes based on RabbitMQ
package ca.gc.aafc.dina.messaging.consumer;
import ca.gc.aafc.dina.messaging.DinaMessage;
/**
* Interface to receive message.
*
* It is preferable to use SpEL to set the queue, the root will be BeanExpressionContext so a Bean must be used.
*
*/
public interface RabbitMQMessageConsumer {
/**
* Annotate implementation method with:
* RabbitListener(queues = "#{searchQueueProperties.getQueue()}") where searchQueueProperties is the
* name of the Bean of type RabbitMQQueueProperties
* @param message the received message.
*/
void receiveMessage(M message);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy