Class ConsumeOkEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class ConsumeOkEvent
    extends AmqpEvent
    An AmqpEvent emitted by the listener container when consumer is subscribed to the queue.
    Since:
    1.7.5
    Author:
    Gary Russell, Artem Bilan
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      ConsumeOkEvent​(java.lang.Object source, java.lang.String queue, java.lang.String consumerTag)
      Instantiate a ConsumeOkEvent based on the provided consumer, queue and consumer tag.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getConsumerTag()
      Obtain the consumer tag assigned to the consumer.
      java.lang.String getQueue()
      Obtain the queue name a consumer has been subscribed.
      java.lang.String toString()  
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

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

      • ConsumeOkEvent

        public ConsumeOkEvent​(java.lang.Object source,
                              java.lang.String queue,
                              java.lang.String consumerTag)
        Instantiate a ConsumeOkEvent based on the provided consumer, queue and consumer tag.
        Parameters:
        source - the consumer subscribed to the queue
        queue - the queue to consume
        consumerTag - the tag indicate a consumer subscription
    • Method Detail

      • getQueue

        public java.lang.String getQueue()
        Obtain the queue name a consumer has been subscribed.
        Returns:
        the queue name a consumer subscribed.
        Since:
        1.7.7
      • getConsumerTag

        public java.lang.String getConsumerTag()
        Obtain the consumer tag assigned to the consumer.
        Returns:
        the consumer tag for subscription.
        Since:
        1.7.7
      • toString

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