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
-
Constructor Summary
ConstructorsConstructorDescriptionDeclareExchangeConnectionListener(org.springframework.amqp.core.Exchange exchange, RabbitAdmin admin) -
Method Summary
Modifier and TypeMethodDescriptionvoidonCreate(@Nullable 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
onClose, onFailed, onShutDown
-
Constructor Details
-
DeclareExchangeConnectionListener
public DeclareExchangeConnectionListener(org.springframework.amqp.core.Exchange exchange, RabbitAdmin admin)
-
-
Method Details
-
onCreate
Description copied from interface:ConnectionListenerCalled when a new connection is established.- Specified by:
onCreatein interfaceConnectionListener- Parameters:
connection- the connection.
-