Package com.rabbitmq.client
Class Delivery
- java.lang.Object
-
- com.rabbitmq.client.Delivery
-
public class Delivery extends java.lang.Object
Encapsulates an arbitrary message - simple "bean" holder structure.
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
_body
private Envelope
_envelope
private AMQP.BasicProperties
_properties
-
Constructor Summary
Constructors Constructor Description Delivery(Envelope envelope, AMQP.BasicProperties properties, byte[] body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBody()
Retrieve the message body.Envelope
getEnvelope()
Retrieve the message envelope.AMQP.BasicProperties
getProperties()
Retrieve the message properties.
-
-
-
Field Detail
-
_envelope
private final Envelope _envelope
-
_properties
private final AMQP.BasicProperties _properties
-
_body
private final byte[] _body
-
-
Constructor Detail
-
Delivery
public Delivery(Envelope envelope, AMQP.BasicProperties properties, byte[] body)
-
-
Method Detail
-
getEnvelope
public Envelope getEnvelope()
Retrieve the message envelope.- Returns:
- the message envelope
-
getProperties
public AMQP.BasicProperties getProperties()
Retrieve the message properties.- Returns:
- the message properties
-
getBody
public byte[] getBody()
Retrieve the message body.- Returns:
- the message body
-
-