@FunctionalInterface public interface ConnectionListener
Modifier and Type | Method and Description |
---|---|
default void |
onClose(Connection connection)
Called when a connection is closed.
|
void |
onCreate(Connection connection)
Called when a new connection is established.
|
default void |
onFailed(Exception exception)
Called when a connection couldn't be established.
|
default void |
onShutDown(com.rabbitmq.client.ShutdownSignalException signal)
Called when a connection is force closed.
|
void onCreate(Connection connection)
connection
- the connection.default void onClose(Connection connection)
connection
- the connection.onShutDown(ShutdownSignalException)
default void onShutDown(com.rabbitmq.client.ShutdownSignalException signal)
signal
- the shut down signal.default void onFailed(Exception exception)
exception
- the exception thrown.