Interface MappingMessageRouterManagement
- All Known Implementing Classes:
AbstractMappingMessageRouter,ErrorMessageExceptionTypeRouter,ExpressionEvaluatingRouter,HeaderValueRouter,MethodInvokingRouter,PayloadTypeRouter
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
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>getChannelMappings()java.util.Collection<java.lang.String>getDynamicChannelNames()Provide a collection of channel names to which we have routed messages where the channel was not explicitly mapped.voidremoveChannelMapping(java.lang.String key)Remove a channel mapping for the given key if present.voidreplaceChannelMappings(java.util.Properties channelMappings)Provide mappings from channel keys to channel names.voidsetChannelMapping(java.lang.String key, java.lang.String channelName)Add a channel mapping from the provided key to channel name.voidsetChannelMappings(java.util.Map<java.lang.String,java.lang.String> channelMappings)Provide mappings from channel keys to channel names.
-
Method Details
-
setChannelMapping
@ManagedOperation void setChannelMapping(java.lang.String key, java.lang.String channelName)Add a channel mapping from the provided key to channel name.- Parameters:
key- The key.channelName- The channel name.
-
removeChannelMapping
@ManagedOperation void removeChannelMapping(java.lang.String key)Remove a channel mapping for the given key if present.- Parameters:
key- The key.
-
replaceChannelMappings
@ManagedOperation void replaceChannelMappings(java.util.Properties channelMappings)Provide mappings from channel keys to channel names.- Parameters:
channelMappings- The channel mappings.- Since:
- 4.0
-
getChannelMappings
@ManagedAttribute java.util.Map<java.lang.String,java.lang.String> getChannelMappings()- Returns:
- an unmodifiable map of channel mappings.
- Since:
- 4.0
-
setChannelMappings
@ManagedAttribute void setChannelMappings(java.util.Map<java.lang.String,java.lang.String> channelMappings)Provide mappings from channel keys to channel names. Channel names will be resolved by theDestinationResolver.- Parameters:
channelMappings- The channel mappings.- Since:
- 4.0
-
getDynamicChannelNames
@ManagedAttribute java.util.Collection<java.lang.String> 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
-