public class RouterMetrics extends LifecycleMessageHandlerMetrics implements MappingMessageRouterManagement
IntegrationManagement.ManagementOverridesdelegateMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME| Constructor and Description |
|---|
RouterMetrics(org.springframework.context.Lifecycle lifecycle,
MappingMessageRouterManagement delegate) |
| Modifier and Type | Method and 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.
|
void |
removeChannelMapping(java.lang.String key)
Remove a channel mapping for the given key if present.
|
void |
replaceChannelMappings(java.util.Properties channelMappings)
Provide mappings from channel keys to channel names.
|
void |
setChannelMapping(java.lang.String key,
java.lang.String channelName)
Add a channel mapping from the provided key to channel name.
|
void |
setChannelMappings(java.util.Map<java.lang.String,java.lang.String> channelMappings)
Provide mappings from channel keys to channel names.
|
configureMetrics, getActiveCount, getActiveCountLong, getDelegate, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMinDuration, getOverrides, getStandardDeviationDuration, isCountsEnabled, isLoggingEnabled, isRunning, isStatsEnabled, reset, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setStatsEnabled, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterMetricsCaptorpublic RouterMetrics(org.springframework.context.Lifecycle lifecycle,
MappingMessageRouterManagement delegate)
public void setChannelMapping(java.lang.String key,
java.lang.String channelName)
MappingMessageRouterManagementsetChannelMapping in interface MappingMessageRouterManagementkey - The key.channelName - The channel name.public void removeChannelMapping(java.lang.String key)
MappingMessageRouterManagementremoveChannelMapping in interface MappingMessageRouterManagementkey - The key.public void replaceChannelMappings(java.util.Properties channelMappings)
MappingMessageRouterManagementreplaceChannelMappings in interface MappingMessageRouterManagementchannelMappings - The channel mappings.public java.util.Map<java.lang.String,java.lang.String> getChannelMappings()
getChannelMappings in interface MappingMessageRouterManagementpublic void setChannelMappings(java.util.Map<java.lang.String,java.lang.String> channelMappings)
MappingMessageRouterManagementDestinationResolver.setChannelMappings in interface MappingMessageRouterManagementchannelMappings - The channel mappings.public java.util.Collection<java.lang.String> getDynamicChannelNames()
MappingMessageRouterManagementImplementations may choose to return only the most recent channel names.
getDynamicChannelNames in interface MappingMessageRouterManagement