Package org.springframework.amqp.core
Class ReturnedMessage
- java.lang.Object
-
- org.springframework.amqp.core.ReturnedMessage
-
public class ReturnedMessage extends java.lang.ObjectReturned message and its metadata.- Since:
- 2.3
-
-
Constructor Summary
Constructors Constructor Description ReturnedMessage(Message message, int replyCode, java.lang.String replyText, java.lang.String exchange, java.lang.String routingKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetExchange()Get the exchange.MessagegetMessage()Get the message.intgetReplyCode()Get the reply code.java.lang.StringgetReplyText()Get the reply text.java.lang.StringgetRoutingKey()Get the routing key.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ReturnedMessage
public ReturnedMessage(Message message, int replyCode, java.lang.String replyText, java.lang.String exchange, java.lang.String routingKey)
-
-
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 java.lang.String getReplyText()
Get the reply text.- Returns:
- the reply text.
-
getExchange
public java.lang.String getExchange()
Get the exchange.- Returns:
- the exchange name.
-
getRoutingKey
public java.lang.String getRoutingKey()
Get the routing key.- Returns:
- the routing key.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-