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 Details

    • setChannelMapping

      @ManagedOperation void setChannelMapping(String key, 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(String key)
      Remove a channel mapping for the given key if present.
      Parameters:
      key - The key.
    • replaceChannelMappings

      @ManagedOperation void replaceChannelMappings(Properties channelMappings)
      Provide mappings from channel keys to channel names.
      Parameters:
      channelMappings - The channel mappings.
      Since:
      4.0
    • getChannelMappings

      @ManagedAttribute Map<String,String> getChannelMappings()
      Returns:
      an unmodifiable map of channel mappings.
      Since:
      4.0
    • setChannelMappings

      @ManagedAttribute void setChannelMappings(Map<String,String> channelMappings)
      Provide mappings from channel keys to channel names. Channel names will be resolved by the DestinationResolver.
      Parameters:
      channelMappings - The channel mappings.
      Since:
      4.0
    • getDynamicChannelNames

      @ManagedAttribute Collection<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