Class SimpleRoutingConnectionFactory
- java.lang.Object
-
- org.springframework.amqp.rabbit.connection.AbstractRoutingConnectionFactory
-
- org.springframework.amqp.rabbit.connection.SimpleRoutingConnectionFactory
-
- All Implemented Interfaces:
ConnectionFactory
,RoutingConnectionFactory
,DisposableBean
,InitializingBean
public class SimpleRoutingConnectionFactory extends AbstractRoutingConnectionFactory
AnAbstractRoutingConnectionFactory
implementation which gets alookupKey
for currentConnectionFactory
from thread-bound resource by key of the instance of thisConnectionFactory
.- Since:
- 1.3
- Author:
- Artem Bilan, Gary Russell
-
-
Constructor Summary
Constructors Constructor Description SimpleRoutingConnectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
determineCurrentLookupKey()
Determine the current lookup key.-
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
-
-
-
-
Method Detail
-
determineCurrentLookupKey
@Nullable protected java.lang.Object 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.
-
-