Class Envelope


  • public class Envelope
    extends java.lang.Object
    Encapsulates a group of parameters used for AMQP's Basic methods
    • Constructor Summary

      Constructors 
      Constructor Description
      Envelope​(long deliveryTag, boolean redeliver, java.lang.String exchange, java.lang.String routingKey)
      Construct an Envelope with the specified construction parameters
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getDeliveryTag()
      Get the delivery tag included in this parameter envelope
      java.lang.String getExchange()
      Get the name of the exchange included in this parameter envelope
      java.lang.String getRoutingKey()
      Get the routing key included in this parameter envelope
      boolean isRedeliver()
      Get the redelivery flag included in this parameter envelope.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • _deliveryTag

        private final long _deliveryTag
      • _redeliver

        private final boolean _redeliver
      • _exchange

        private final java.lang.String _exchange
      • _routingKey

        private final java.lang.String _routingKey
    • Constructor Detail

      • Envelope

        public Envelope​(long deliveryTag,
                        boolean redeliver,
                        java.lang.String exchange,
                        java.lang.String routingKey)
        Construct an Envelope with the specified construction parameters
        Parameters:
        deliveryTag - the delivery tag
        redeliver - true if this is a redelivery following a failed ack
        exchange - the exchange used for the current operation
        routingKey - the associated routing key
    • Method Detail

      • getDeliveryTag

        public long getDeliveryTag()
        Get the delivery tag included in this parameter envelope
        Returns:
        the delivery tag
      • isRedeliver

        public boolean isRedeliver()
        Get the redelivery flag included in this parameter envelope. This is a hint as to whether this message may have been delivered before (but not acknowledged). If the flag is not set, the message definitely has not been delivered before. If it is set, it may have been delivered before.
        Returns:
        the redelivery flag
      • getExchange

        public java.lang.String getExchange()
        Get the name of the exchange included in this parameter envelope
        Returns:
        the exchange
      • getRoutingKey

        public java.lang.String getRoutingKey()
        Get the routing key included in this parameter envelope
        Returns:
        the routing key
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object