Package org.springframework.amqp.core
Class ReturnedMessage
java.lang.Object
org.springframework.amqp.core.ReturnedMessage
Returned message and its metadata.
- Since:
- 2.3
- Author:
- Gary Russell
-
Constructor Summary
ConstructorDescriptionReturnedMessage
(Message message, int replyCode, String replyText, String exchange, String routingKey) -
Method Summary
Modifier and TypeMethodDescriptionGet the exchange.Get the message.int
Get the reply code.Get the reply text.Get the routing key.toString()
-
Constructor Details
-
ReturnedMessage
-
-
Method Details
-
getMessage
Get the message.- Returns:
- the message.
-
getReplyCode
public int getReplyCode()Get the reply code.- Returns:
- the reply code.
-
getReplyText
Get the reply text.- Returns:
- the reply text.
-
getExchange
Get the exchange.- Returns:
- the exchange name.
-
getRoutingKey
Get the routing key.- Returns:
- the routing key.
-
toString
-