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