public interface ConnectionListener
Connection
related events.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. |
void onCreate(com.rabbitmq.client.Connection connection)
connection
is successfully created.void onCreateFailure(Throwable failure)
void onRecoveryStarted(com.rabbitmq.client.Connection connection)
connection
is started.void onRecovery(com.rabbitmq.client.Connection connection)
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)
connection
and its associated resources is completed. Note:
The success of failure of an individual channel's recovery can be tracked with a
ChannelListener
.void onRecoveryFailure(com.rabbitmq.client.Connection connection, Throwable failure)
connection
fails to recover from an unexpected closure.Copyright © 2016. All rights reserved.