Class DeclareExchangeConnectionListener
java.lang.Object
org.springframework.amqp.rabbit.core.DeclareExchangeConnectionListener
- All Implemented Interfaces:
ConnectionListener
A
ConnectionListener that will declare a single exchange when the
connection is established.- Since:
- 1.5.4
- Author:
- Gary Russell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonClose(Connection connection) Called when a connection is closed.voidonCreate(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, waitMethods inherited from interface org.springframework.amqp.rabbit.connection.ConnectionListener
onFailed, onShutDown
-
Constructor Details
-
DeclareExchangeConnectionListener
-
-
Method Details
-
onCreate
Description copied from interface:ConnectionListenerCalled when a new connection is established.- Specified by:
onCreatein interfaceConnectionListener- Parameters:
connection- the connection.
-
onClose
Description copied from interface:ConnectionListenerCalled when a connection is closed.- Specified by:
onClosein interfaceConnectionListener- Parameters:
connection- the connection.- See Also:
-