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 RoutingConnectionFactory
Implementations 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 ConnectionFactory
getTargetConnectionFactory(java.lang.Object key)
Returns theConnectionFactory
bound to given lookup key, or null if one does not exist.
-
-
-
Method Detail
-
getTargetConnectionFactory
@Nullable ConnectionFactory getTargetConnectionFactory(java.lang.Object key)
Returns theConnectionFactory
bound to given lookup key, or null if one does not exist.- Parameters:
key
- The lookup key to which theConnectionFactory
is bound- Returns:
- the
ConnectionFactory
bound to the given lookup key, or null if one does not exist
-
-