Package com.rabbitmq.client
Class Envelope
- java.lang.Object
-
- com.rabbitmq.client.Envelope
-
public class Envelope extends Object
Encapsulates a group of parameters used for AMQP's Basic methods
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDeliveryTag()
Get the delivery tag included in this parameter envelopeString
getExchange()
Get the name of the exchange included in this parameter envelopeString
getRoutingKey()
Get the routing key included in this parameter envelopeboolean
isRedeliver()
Get the redelivery flag included in this parameter envelope.String
toString()
-
-
-
Constructor Detail
-
Envelope
public Envelope(long deliveryTag, boolean redeliver, String exchange, String routingKey)
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 Detail
-
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
public String getExchange()
Get the name of the exchange included in this parameter envelope- Returns:
- the exchange
-
getRoutingKey
public String getRoutingKey()
Get the routing key included in this parameter envelope- Returns:
- the routing key
-
-