Interface MappingMessageRouterManagement
- All Known Implementing Classes:
AbstractMappingMessageRouter
,ErrorMessageExceptionTypeRouter
,ExpressionEvaluatingRouter
,HeaderValueRouter
,MethodInvokingRouter
,PayloadTypeRouter
,XPathRouter
public interface MappingMessageRouterManagement
Exposes channel mapping operations when the router is proxied.
setChannelMappings(Map)
is also exposed. This cannot
be used with a control-bus, but it can be used programmatically
or over JMX.- Since:
- 2.1
- Author:
- Gary Russell
-
Method Summary
Modifier and TypeMethodDescriptionProvide a collection of channel names to which we have routed messages where the channel was not explicitly mapped.void
Remove a channel mapping for the given key if present.void
replaceChannelMappings
(Properties channelMappings) Provide mappings from channel keys to channel names.void
setChannelMapping
(String key, String channelName) Add a channel mapping from the provided key to channel name.void
setChannelMappings
(Map<String, String> channelMappings) Provide mappings from channel keys to channel names.
-
Method Details
-
setChannelMapping
Add a channel mapping from the provided key to channel name.- Parameters:
key
- The key.channelName
- The channel name.
-
removeChannelMapping
Remove a channel mapping for the given key if present.- Parameters:
key
- The key.
-
replaceChannelMappings
Provide mappings from channel keys to channel names.- Parameters:
channelMappings
- The channel mappings.- Since:
- 4.0
-
getChannelMappings
- Returns:
- an unmodifiable map of channel mappings.
- Since:
- 4.0
-
setChannelMappings
Provide mappings from channel keys to channel names. Channel names will be resolved by theDestinationResolver
.- Parameters:
channelMappings
- The channel mappings.- Since:
- 4.0
-
getDynamicChannelNames
Provide a collection of channel names to which we have routed messages where the channel was not explicitly mapped.Implementations may choose to return only the most recent channel names.
- Returns:
- a collection of channel names to which we have routed messages where the channel was not explicitly mapped.
- Since:
- 4.3
-