Class Delivery
- java.lang.Object
-
- org.springframework.amqp.rabbit.support.Delivery
-
public class Delivery extends java.lang.Object
Encapsulates an arbitrary message - simple "bean" holder structure.- Since:
- 2.0
- Author:
- Gary Russell
-
-
Constructor Summary
Constructors Constructor Description Delivery(java.lang.String consumerTag, com.rabbitmq.client.Envelope envelope, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body, java.lang.String queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBody()
Retrieve the message body.java.lang.String
getConsumerTag()
Retrieve the consumer tag.com.rabbitmq.client.Envelope
getEnvelope()
Retrieve the message envelope.com.rabbitmq.client.AMQP.BasicProperties
getProperties()
Retrieve the message properties.java.lang.String
getQueue()
Retrieve the queue.
-
-
-
Method Detail
-
getConsumerTag
public java.lang.String getConsumerTag()
Retrieve the consumer tag.- Returns:
- the consumer tag.
-
getEnvelope
public com.rabbitmq.client.Envelope getEnvelope()
Retrieve the message envelope.- Returns:
- the message envelope.
-
getProperties
public com.rabbitmq.client.AMQP.BasicProperties getProperties()
Retrieve the message properties.- Returns:
- the message properties.
-
getBody
public byte[] getBody()
Retrieve the message body.- Returns:
- the message body.
-
getQueue
public java.lang.String getQueue()
Retrieve the queue.- Returns:
- the queue.
-
-