Class MessageBatch
- java.lang.Object
-
- org.springframework.amqp.rabbit.batch.MessageBatch
-
public class MessageBatch extends java.lang.Object
An object encapsulating aMessage
containing the batch of messages, the exchange, and routing key.- Since:
- 1.4.1
- Author:
- Gary Russell
-
-
Constructor Summary
Constructors Constructor Description MessageBatch(java.lang.String exchange, java.lang.String routingKey, Message message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExchange()
Message
getMessage()
java.lang.String
getRoutingKey()
-
-
-
Constructor Detail
-
MessageBatch
public MessageBatch(java.lang.String exchange, java.lang.String routingKey, Message message)
-
-
Method Detail
-
getExchange
public java.lang.String getExchange()
- Returns:
- the exchange
-
getRoutingKey
public java.lang.String getRoutingKey()
- Returns:
- the routingKey
-
getMessage
public Message getMessage()
- Returns:
- the message
-
-