public abstract class DefaultConnectionListener extends Object implements ConnectionListener
Constructor and Description |
---|
DefaultConnectionListener() |
Modifier and Type | Method and Description |
---|---|
void |
onCreate(com.rabbitmq.client.Connection connection)
Called when the
connection is successfully created. |
void |
onCreateFailure(Throwable failure)
Called when connection creation fails.
|
void |
onRecovery(com.rabbitmq.client.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(com.rabbitmq.client.Connection connection)
Called when recovery of the
connection and its associated resources is completed. |
void |
onRecoveryFailure(com.rabbitmq.client.Connection connection,
Throwable failure)
Called when the
connection fails to recover from an unexpected closure. |
void |
onRecoveryStarted(com.rabbitmq.client.Connection connection)
Called when recovery of the
connection is started. |
public void onCreate(com.rabbitmq.client.Connection connection)
ConnectionListener
connection
is successfully created.onCreate
in interface ConnectionListener
public void onCreateFailure(Throwable failure)
ConnectionListener
onCreateFailure
in interface ConnectionListener
public void onRecovery(com.rabbitmq.client.Connection connection)
ConnectionListener
connection
is successfully recovered from an unexpected closure, but
before its associated exchanges, queues, bindings, channels and consumers are recovered.onRecovery
in interface ConnectionListener
public void onRecoveryCompleted(com.rabbitmq.client.Connection connection)
ConnectionListener
connection
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 ConnectionListener
public void onRecoveryFailure(com.rabbitmq.client.Connection connection, Throwable failure)
ConnectionListener
connection
fails to recover from an unexpected closure.onRecoveryFailure
in interface ConnectionListener
public void onRecoveryStarted(com.rabbitmq.client.Connection connection)
ConnectionListener
connection
is started.onRecoveryStarted
in interface ConnectionListener
Copyright © 2016. All rights reserved.