public interface ConsumerListener
Consumer related events.| Modifier and Type | Method and Description |
|---|---|
void |
onAfterRecovery(com.rabbitmq.client.Consumer consumer,
com.rabbitmq.client.Channel channel)
Called after the
consumer is recovered from an unexpected closure on the
channel. |
void |
onBeforeRecovery(com.rabbitmq.client.Consumer consumer,
com.rabbitmq.client.Channel channel)
Called before the
consumer is recovered from an unexpected closure on the
channel. |
void |
onRecoveryFailure(com.rabbitmq.client.Consumer consumer,
com.rabbitmq.client.Channel channel,
Throwable failure)
Called after the
consumer fails to recover from an unexpected closure on the
channel. |
void onBeforeRecovery(com.rabbitmq.client.Consumer consumer,
com.rabbitmq.client.Channel channel)
consumer is recovered from an unexpected closure on the
channel. This is useful for performing any pre-consumer setup that is required such as
declaring exchanges and queues, and creating queue to exchange bindings.void onAfterRecovery(com.rabbitmq.client.Consumer consumer,
com.rabbitmq.client.Channel channel)
consumer is recovered from an unexpected closure on the
channel.void onRecoveryFailure(com.rabbitmq.client.Consumer consumer,
com.rabbitmq.client.Channel channel,
Throwable failure)
consumer fails to recover from an unexpected closure on the
channel.Copyright © 2014. All rights reserved.