Class Delivery

java.lang.Object
org.springframework.amqp.rabbit.support.Delivery

public class Delivery extends Object
Encapsulates an arbitrary message - simple "bean" holder structure.
Since:
2.0
Author:
Gary Russell
  • Constructor Details

    • Delivery

      public Delivery(String consumerTag, com.rabbitmq.client.Envelope envelope, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body, String queue)
  • Method Details

    • getConsumerTag

      public 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 String getQueue()
      Retrieve the queue.
      Returns:
      the queue.