Class SimpleRoutingConnectionFactory
java.lang.Object
org.springframework.amqp.rabbit.connection.AbstractRoutingConnectionFactory
org.springframework.amqp.rabbit.connection.SimpleRoutingConnectionFactory
- All Implemented Interfaces:
ConnectionFactory,RoutingConnectionFactory,DisposableBean,InitializingBean
An
AbstractRoutingConnectionFactory implementation which gets a lookupKey
for current ConnectionFactory from thread-bound resource by key of the instance of
this ConnectionFactory.- Since:
- 1.3
- Author:
- Artem Bilan, Gary Russell
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.amqp.rabbit.connection.AbstractRoutingConnectionFactory
addConnectionListener, addTargetConnectionFactory, afterPropertiesSet, clearConnectionListeners, createConnection, destroy, determineTargetConnectionFactory, getHost, getPort, getTargetConnectionFactory, getUsername, getVirtualHost, isLenientFallback, isPublisherConfirms, isPublisherReturns, removeConnectionListener, removeTargetConnectionFactory, resetConnection, setConsistentConfirmsReturns, setDefaultTargetConnectionFactory, setLenientFallback, setTargetConnectionFactoriesMethods 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.ConnectionFactory
getPublisherConnectionFactory, isSimplePublisherConfirms
-
Constructor Details
-
SimpleRoutingConnectionFactory
public SimpleRoutingConnectionFactory()
-
-
Method Details
-
determineCurrentLookupKey
Description copied from class:AbstractRoutingConnectionFactoryDetermine the current lookup key. This will typically be implemented to check a thread-bound context.- Specified by:
determineCurrentLookupKeyin classAbstractRoutingConnectionFactory- Returns:
- The lookup key.
-