public class ErrorMessageExceptionTypeRouter extends AbstractMappingMessageRouter
MessageChannel for
messages whose payload is a Throwable.
The channel resolution is based upon the most specific cause
of the error for which a channel-mapping exists.
The channel-mapping can be specified for the super classes to avoid mapping duplication for the particular exception implementation.
IntegrationManagement.ManagementOverridesEXPRESSION_PARSER, loggerMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
ErrorMessageExceptionTypeRouter() |
| Modifier and Type | Method and Description |
|---|---|
protected List<Object> |
getChannelKeys(Message<?> message)
Subclasses must implement this method to return the channel keys.
|
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
removeChannelMapping(String key)
Remove a channel mapping for the given key if present.
|
void |
replaceChannelMappings(Properties channelMappings)
Convenience method allowing conversion of a list
of mappings in a control-bus message.
|
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.
|
determineTargetChannels, getChannelMappings, getDynamicChannelNames, setDynamicChannelLimit, setPrefix, setResolutionRequired, setSuffixgetComponentType, getDefaultOutputChannel, getMessagingTemplate, getRequiredConversionService, handleMessageInternal, setApplySequence, setDefaultOutputChannel, setDefaultOutputChannelName, setIgnoreSendFailures, setSendTimeoutconfigureMetrics, destroy, getActiveCount, getActiveCountLong, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMinDuration, getOrder, getOverrides, getStandardDeviationDuration, handleMessage, isCountsEnabled, isLoggingEnabled, isStatsEnabled, onComplete, onError, onNext, onSubscribe, registerMetricsCaptor, reset, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, setStatsEnabledafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiterrorCount, handleCountgetBeanName, getComponentName@ManagedAttribute public void setChannelMappings(Map<String,String> channelMappings)
AbstractMappingMessageRouterDestinationResolver.setChannelMappings in interface MappingMessageRouterManagementsetChannelMappings in class AbstractMappingMessageRouterchannelMappings - The channel mappings.@ManagedOperation public void setChannelMapping(String key, String channelName)
AbstractMappingMessageRoutersetChannelMapping in interface MappingMessageRouterManagementsetChannelMapping in class AbstractMappingMessageRouterkey - The key.channelName - The channel name.@ManagedOperation public void removeChannelMapping(String key)
AbstractMappingMessageRouterremoveChannelMapping in interface MappingMessageRouterManagementremoveChannelMapping in class AbstractMappingMessageRouterkey - The key.@ManagedOperation public void replaceChannelMappings(Properties channelMappings)
AbstractMappingMessageRouterThis is intended to be called via a control-bus; keys and values that are not Strings will be ignored.
Mappings must be delimited with newlines, for example:
"@'myRouter.handler'.replaceChannelMappings('foo=qux \n baz=bar')".
replaceChannelMappings in interface MappingMessageRouterManagementreplaceChannelMappings in class AbstractMappingMessageRouterchannelMappings - The channel mappings.protected void onInit()
IntegrationObjectSupportonInit in class AbstractMessageRouterprotected List<Object> getChannelKeys(Message<?> message)
AbstractMappingMessageRoutergetChannelKeys in class AbstractMappingMessageRoutermessage - The message.