com.rabbitmq.client
Class QueueingConsumer.Delivery

java.lang.Object
  extended by com.rabbitmq.client.QueueingConsumer.Delivery
Enclosing class:
QueueingConsumer

public static class QueueingConsumer.Delivery
extends java.lang.Object

Encapsulates an arbitrary message - simple "bean" holder structure.


Constructor Summary
QueueingConsumer.Delivery(Envelope envelope, AMQP.BasicProperties properties, byte[] body)
           
 
Method Summary
 byte[] getBody()
          Retrieve the message body.
 Envelope getEnvelope()
          Retrieve the message envelope.
 AMQP.BasicProperties getProperties()
          Retrieve the message properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueingConsumer.Delivery

public QueueingConsumer.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