public final class DeclareExchangeConnectionListener extends Object implements ConnectionListener
ConnectionListener that will declare a single exchange when the
connection is established.| Constructor and Description |
|---|
DeclareExchangeConnectionListener(Exchange exchange,
RabbitAdmin admin) |
| Modifier and Type | Method and Description |
|---|---|
void |
onClose(Connection connection)
Called when a connection is closed.
|
void |
onCreate(Connection connection)
Called when a new connection is established.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonShutDownpublic DeclareExchangeConnectionListener(Exchange exchange, RabbitAdmin admin)
public void onCreate(Connection connection)
ConnectionListeneronCreate in interface ConnectionListenerconnection - the connection.public void onClose(Connection connection)
ConnectionListeneronClose in interface ConnectionListenerconnection - the connection.ConnectionListener.onShutDown(ShutdownSignalException)