Class MessageBatch


  • public class MessageBatch
    extends java.lang.Object
    An object encapsulating a Message containing the batch of messages, the exchange, and routing key.
    Since:
    1.4.1
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageBatch​(java.lang.String exchange, java.lang.String routingKey, org.springframework.amqp.core.Message message)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getExchange()  
      org.springframework.amqp.core.Message getMessage()  
      java.lang.String getRoutingKey()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MessageBatch

        public MessageBatch​(java.lang.String exchange,
                            java.lang.String routingKey,
                            org.springframework.amqp.core.Message message)
    • Method Detail

      • getExchange

        public java.lang.String getExchange()
        Returns:
        the exchange
      • getRoutingKey

        public java.lang.String getRoutingKey()
        Returns:
        the routingKey
      • getMessage

        public org.springframework.amqp.core.Message getMessage()
        Returns:
        the message