All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.gc.aafc.dina.messaging.consumer.RabbitMQMessageConsumer Maven / Gradle / Ivy

There is a newer version: 0.134
Show newest version
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