Package com.rabbitmq.client
Class Envelope
java.lang.Object
com.rabbitmq.client.Envelope
Encapsulates a group of parameters used for AMQP's Basic methods
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Get the delivery tag included in this parameter envelopeGet the name of the exchange included in this parameter envelopeGet the routing key included in this parameter envelopeboolean
Get the redelivery flag included in this parameter envelope.toString()
-
Constructor Details
-
Envelope
Construct anEnvelope
with the specified construction parameters- Parameters:
deliveryTag
- the delivery tagredeliver
- true if this is a redelivery following a failed ackexchange
- the exchange used for the current operationroutingKey
- the associated routing key
-
-
Method Details
-
getDeliveryTag
public long getDeliveryTag()Get the delivery tag included in this parameter envelope- Returns:
- the delivery tag
-
isRedeliver
public boolean isRedeliver()Get the redelivery flag included in this parameter envelope. This is a hint as to whether this message may have been delivered before (but not acknowledged). If the flag is not set, the message definitely has not been delivered before. If it is set, it may have been delivered before.- Returns:
- the redelivery flag
-
getExchange
Get the name of the exchange included in this parameter envelope- Returns:
- the exchange
-
getRoutingKey
Get the routing key included in this parameter envelope- Returns:
- the routing key
-
toString
-