Spring AMQP

org.springframework.amqp.rabbit.listener
Class BlockingQueueConsumer.Delivery

java.lang.Object
  extended by org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.Delivery
Enclosing class:
BlockingQueueConsumer

public static class BlockingQueueConsumer.Delivery
extends Object

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


Constructor Summary
BlockingQueueConsumer.Delivery(com.rabbitmq.client.Envelope envelope, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body)
           
 
Method Summary
 byte[] getBody()
          Retrieve the message body.
 com.rabbitmq.client.Envelope getEnvelope()
          Retrieve the message envelope.
 com.rabbitmq.client.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

BlockingQueueConsumer.Delivery

public BlockingQueueConsumer.Delivery(com.rabbitmq.client.Envelope envelope,
                                      com.rabbitmq.client.AMQP.BasicProperties properties,
                                      byte[] body)
Method Detail

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

Spring AMQP

Copyright © 2010. All Rights Reserved.