Interface RoutingConnectionFactory
-
- All Known Implementing Classes:
AbstractRoutingConnectionFactory,LocalizedQueueConnectionFactory,SimpleRoutingConnectionFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface RoutingConnectionFactoryImplementations select a connection factory based on a supplied key.- Since:
- 1.4.5
- Author:
- Gary Russell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectionFactorygetTargetConnectionFactory(java.lang.Object key)Returns theConnectionFactorybound to given lookup key, or null if one does not exist.
-
-
-
Method Detail
-
getTargetConnectionFactory
@Nullable ConnectionFactory getTargetConnectionFactory(java.lang.Object key)
Returns theConnectionFactorybound to given lookup key, or null if one does not exist.- Parameters:
key- The lookup key to which theConnectionFactoryis bound- Returns:
- the
ConnectionFactorybound to the given lookup key, or null if one does not exist
-
-