public class RouterMetrics extends LifecycleMessageHandlerMetrics implements MappingMessageRouterManagement
delegate| Constructor and Description |
|---|
RouterMetrics(Lifecycle lifecycle,
MappingMessageRouterManagement delegate) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getChannelMappings() |
void |
removeChannelMapping(String key)
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.
|
configureMetrics, enableCounts, enableStats, getActiveCount, getActiveCountLong, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMinDuration, getStandardDeviationDuration, isCountsEnabled, isLoggingEnabled, isRunning, isStatsEnabled, reset, setLoggingEnabled, setManagedName, setManagedType, start, stoppublic RouterMetrics(Lifecycle lifecycle, MappingMessageRouterManagement delegate)
public void setChannelMapping(String key, String channelName)
MappingMessageRouterManagementsetChannelMapping in interface MappingMessageRouterManagementkey - The key.channelName - The channel name.public void removeChannelMapping(String key)
MappingMessageRouterManagementremoveChannelMapping in interface MappingMessageRouterManagementkey - The key.public void replaceChannelMappings(Properties channelMappings)
MappingMessageRouterManagementreplaceChannelMappings in interface MappingMessageRouterManagementchannelMappings - The channel mappings.public Map<String,String> getChannelMappings()
getChannelMappings in interface MappingMessageRouterManagementpublic void setChannelMappings(Map<String,String> channelMappings)
MappingMessageRouterManagementDestinationResolver.setChannelMappings in interface MappingMessageRouterManagementchannelMappings - The channel mappings.