public abstract class DefaultChannelListener extends Object implements ChannelListener
| Constructor and Description |
|---|
DefaultChannelListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onCreate(Channel channel)
Called when the
channel is successfully created. |
void |
onCreateFailure(Throwable failure)
Called when channel creation fails.
|
void |
onRecovery(Channel channel)
Called when the
channel is successfully recovered from an unexpected closure but before
its consumers and their associated queues, exchanges, and bindings are recovered. |
void |
onRecoveryCompleted(Channel channel)
Called when recovery of the
channel and its consumers is completed. |
void |
onRecoveryFailure(Channel channel,
Throwable failure)
Called when the
channel fails to recover from an unexpected closure. |
void |
onRecoveryStarted(Channel channel)
Called when recovery of the
channel is started. |
public void onCreate(Channel channel)
ChannelListenerchannel is successfully created.onCreate in interface ChannelListenerpublic void onCreateFailure(Throwable failure)
ChannelListeneronCreateFailure in interface ChannelListenerpublic void onRecovery(Channel channel)
ChannelListenerchannel is successfully recovered from an unexpected closure but before
its consumers and their 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 onRecoveryCompleted(Channel channel)
ChannelListenerchannel and its consumers is completed. Note: The success
or failure of an individual consumer's recovery can be tracked with a ConsumerListener.onRecoveryCompleted in interface ChannelListenerpublic void onRecoveryFailure(Channel channel, Throwable failure)
ChannelListenerchannel fails to recover from an unexpected closure.onRecoveryFailure in interface ChannelListenerpublic void onRecoveryStarted(Channel channel)
ChannelListenerchannel is started.onRecoveryStarted in interface ChannelListenerCopyright © 2017. All rights reserved.