Class DeclareExchangeConnectionListener
- java.lang.Object
-
- org.springframework.amqp.rabbit.core.DeclareExchangeConnectionListener
-
- All Implemented Interfaces:
ConnectionListener
public final class DeclareExchangeConnectionListener extends Object implements ConnectionListener
AConnectionListener
that will declare a single exchange when the connection is established.- Since:
- 1.5.4
- Author:
- Gary Russell
-
-
Constructor Summary
Constructors Constructor Description DeclareExchangeConnectionListener(Exchange exchange, RabbitAdmin admin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onClose(Connection connection)
Called when a connection is closed.void
onCreate(Connection connection)
Called when a new connection is established.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.amqp.rabbit.connection.ConnectionListener
onFailed, onShutDown
-
-
-
-
Constructor Detail
-
DeclareExchangeConnectionListener
public DeclareExchangeConnectionListener(Exchange exchange, RabbitAdmin admin)
-
-
Method Detail
-
onCreate
public void onCreate(Connection connection)
Description copied from interface:ConnectionListener
Called when a new connection is established.- Specified by:
onCreate
in interfaceConnectionListener
- Parameters:
connection
- the connection.
-
onClose
public void onClose(Connection connection)
Description copied from interface:ConnectionListener
Called when a connection is closed.- Specified by:
onClose
in interfaceConnectionListener
- Parameters:
connection
- the connection.- See Also:
ConnectionListener.onShutDown(ShutdownSignalException)
-
-