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
-
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, setTargetConnectionFactories
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.ConnectionFactory
getPublisherConnectionFactory, isSimplePublisherConfirms
-
Constructor Details
-
SimpleRoutingConnectionFactory
public SimpleRoutingConnectionFactory()
-
-
Method Details
-
determineCurrentLookupKey
Description copied from class:AbstractRoutingConnectionFactory
Determine the current lookup key. This will typically be implemented to check a thread-bound context.- Specified by:
determineCurrentLookupKey
in classAbstractRoutingConnectionFactory
- Returns:
- The lookup key.
-