public interface ChannelListener
Channel related events.| Modifier and Type | Method and Description |
|---|---|
void |
onConsumerRecovery(com.rabbitmq.client.Channel channel)
Called after the
channel and its consumers are recovered from an unexpected closure. |
void |
onCreate(com.rabbitmq.client.Channel channel)
Called after the
channel is successfully created. |
void |
onCreateFailure(Throwable failure)
Called after channel creation fails.
|
void |
onRecovery(com.rabbitmq.client.Channel channel)
Called after the
channel is recovered from an unexpected closure, but before its
consumers along with associated queues, exchanges, and bindings are recovered. |
void |
onRecoveryFailure(com.rabbitmq.client.Channel channel,
Throwable failure)
Called after the
channel fails to recover from an unexpected closure. |
void onConsumerRecovery(com.rabbitmq.client.Channel channel)
channel and its consumers are recovered from an unexpected closure.void onCreate(com.rabbitmq.client.Channel channel)
channel is successfully created.void onCreateFailure(Throwable failure)
void onRecovery(com.rabbitmq.client.Channel channel)
channel is recovered from an unexpected closure, but before its
consumers along with associated queues, exchanges, and bindings are recovered. 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 onRecoveryFailure(com.rabbitmq.client.Channel channel,
Throwable failure)
channel fails to recover from an unexpected closure.Copyright © 2014. All rights reserved.