public abstract class DefaultChannelListener extends Object implements ChannelListener
| Constructor and Description |
|---|
DefaultChannelListener() |
| 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. |
public void onConsumerRecovery(com.rabbitmq.client.Channel channel)
ChannelListenerchannel and its consumers are recovered from an unexpected closure.onConsumerRecovery in interface ChannelListenerpublic void onCreate(com.rabbitmq.client.Channel channel)
ChannelListenerchannel is successfully created.onCreate in interface ChannelListenerpublic void onCreateFailure(Throwable failure)
ChannelListeneronCreateFailure in interface ChannelListenerpublic void onRecovery(com.rabbitmq.client.Channel channel)
ChannelListenerchannel 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.onRecovery in interface ChannelListenerpublic void onRecoveryFailure(com.rabbitmq.client.Channel channel,
Throwable failure)
ChannelListenerchannel fails to recover from an unexpected closure.onRecoveryFailure in interface ChannelListenerCopyright © 2014. All rights reserved.