public abstract class DefaultConnectionListener extends Object implements ConnectionListener
| Constructor and Description |
|---|
DefaultConnectionListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onCreate(Connection connection)
Called when the
connection is successfully created. |
void |
onCreateFailure(Throwable failure)
Called when connection creation fails.
|
void |
onRecovery(Connection connection)
Called when the
connection is successfully recovered from an unexpected closure, but
before its associated exchanges, queues, bindings, channels and consumers are recovered. |
void |
onRecoveryCompleted(Connection connection)
Called when recovery of the
connection and its associated resources is completed. |
void |
onRecoveryFailure(Connection connection,
Throwable failure)
Called when the
connection fails to recover from an unexpected closure. |
void |
onRecoveryStarted(Connection connection)
Called when recovery of the
connection is started. |
public void onCreate(Connection connection)
ConnectionListenerconnection is successfully created.onCreate in interface ConnectionListenerpublic void onCreateFailure(Throwable failure)
ConnectionListeneronCreateFailure in interface ConnectionListenerpublic void onRecovery(Connection connection)
ConnectionListenerconnection is successfully recovered from an unexpected closure, but
before its associated exchanges, queues, bindings, channels and consumers are recovered.onRecovery in interface ConnectionListenerpublic void onRecoveryCompleted(Connection connection)
ConnectionListenerconnection and its associated resources is completed. Note:
The success of failure of an individual channel's recovery can be tracked with a
ChannelListener.onRecoveryCompleted in interface ConnectionListenerpublic void onRecoveryFailure(Connection connection, Throwable failure)
ConnectionListenerconnection fails to recover from an unexpected closure.onRecoveryFailure in interface ConnectionListenerpublic void onRecoveryStarted(Connection connection)
ConnectionListenerconnection is started.onRecoveryStarted in interface ConnectionListenerCopyright © 2017. All rights reserved.