Class ConsumeOkEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- org.springframework.amqp.event.AmqpEvent
-
- org.springframework.amqp.rabbit.listener.ConsumeOkEvent
-
- All Implemented Interfaces:
Serializable
public class ConsumeOkEvent extends AmqpEvent
AnAmqpEventemitted 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(Object source, String queue, String consumerTag)Instantiate aConsumeOkEventbased on the provided consumer, queue and consumer tag.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetConsumerTag()Obtain the consumer tag assigned to the consumer.StringgetQueue()Obtain the queue name a consumer has been subscribed.StringtoString()-
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Constructor Detail
-
ConsumeOkEvent
public ConsumeOkEvent(Object source, String queue, String consumerTag)
Instantiate aConsumeOkEventbased on the provided consumer, queue and consumer tag.- Parameters:
source- the consumer subscribed to the queuequeue- the queue to consumeconsumerTag- the tag indicate a consumer subscription
-
-
Method Detail
-
getQueue
public String getQueue()
Obtain the queue name a consumer has been subscribed.- Returns:
- the queue name a consumer subscribed.
- Since:
- 1.7.7
-
getConsumerTag
public String getConsumerTag()
Obtain the consumer tag assigned to the consumer.- Returns:
- the consumer tag for subscription.
- Since:
- 1.7.7
-
toString
public String toString()
- Overrides:
toStringin classEventObject
-
-