public class

Envelope

extends Object
java.lang.Object
   ↳ com.rabbitmq.client.Envelope

Class Overview

Encapsulates a group of parameters used for AMQP's Basic methods

Summary

Public Constructors
Envelope(long deliveryTag, boolean redeliver, String exchange, String routingKey)
Construct an Envelope with the specified construction parameters
Public Methods
long getDeliveryTag()
Get the delivery tag included in this parameter envelope
String getExchange()
Get the name of the exchange included in this parameter envelope
String getRoutingKey()
Get the routing key included in this parameter envelope
boolean isRedeliver()
Get the redelivery flag included in this parameter envelope
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Envelope (long deliveryTag, boolean redeliver, String exchange, String routingKey)

Construct an Envelope with the specified construction parameters

Parameters
deliveryTag the delivery tag
redeliver true if this is a redelivery following a failed ack
exchange the exchange used for the current operation
routingKey the associated routing key

Public Methods

public long getDeliveryTag ()

Get the delivery tag included in this parameter envelope

Returns
  • the delivery tag

public String getExchange ()

Get the name of the exchange included in this parameter envelope

Returns
  • the exchange

public String getRoutingKey ()

Get the routing key included in this parameter envelope

Returns
  • the routing key

public boolean isRedeliver ()

Get the redelivery flag included in this parameter envelope

Returns
  • the redelivery flag