public interface ConnectionListener
A connection listener is used by a connection factory to notify clients about a change in connection state.
| Modifier and Type | Method and Description |
|---|---|
void |
onConnectionClosed(com.rabbitmq.client.Connection connection)
Called when a connection was ultimately closed and no new connection is going to be established
in the future (this the case if the connection factory was teared down).
|
void |
onConnectionEstablished(com.rabbitmq.client.Connection connection)
Called when a connection was established the first time.
|
void |
onConnectionLost(com.rabbitmq.client.Connection connection)
Called when a connection was lost and the connection factory is trying to reestablish the
connection.
|
void onConnectionEstablished(com.rabbitmq.client.Connection connection)
Called when a connection was established the first time.
connection - The established connectionvoid onConnectionLost(com.rabbitmq.client.Connection connection)
Called when a connection was lost and the connection factory is trying to reestablish the connection.
connection - The lost connectionvoid onConnectionClosed(com.rabbitmq.client.Connection connection)
Called when a connection was ultimately closed and no new connection is going to be established in the future (this the case if the connection factory was teared down).
connection - The closed connection