Package com.espertech.esperio.amqp
Class QueueingConsumer.Delivery
java.lang.Object
com.espertech.esperio.amqp.QueueingConsumer.Delivery
- Enclosing class:
- QueueingConsumer
Encapsulates an arbitrary message - simple "bean" holder structure.
-
Constructor Summary
ConstructorDescriptionDelivery
(com.rabbitmq.client.Envelope envelope, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getBody()
Retrieve the message body.com.rabbitmq.client.Envelope
Retrieve the message envelope.com.rabbitmq.client.AMQP.BasicProperties
Retrieve the message properties.
-
Constructor Details
-
Delivery
public Delivery(com.rabbitmq.client.Envelope envelope, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body)
-
-
Method Details
-
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
-