public class ConsumeOkEvent
extends org.springframework.amqp.event.AmqpEvent
AmqpEvent emitted by the listener container
when consumer is subscribed to the queue.| Constructor and 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. |
| Modifier and Type | Method and 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() |
public ConsumeOkEvent(java.lang.Object source,
java.lang.String queue,
java.lang.String consumerTag)
ConsumeOkEvent based on the provided
consumer, queue and consumer tag.source - the consumer subscribed to the queuequeue - the queue to consumeconsumerTag - the tag indicate a consumer subscriptionpublic java.lang.String getQueue()
public java.lang.String getConsumerTag()
public java.lang.String toString()
toString in class java.util.EventObject