S - the target AbstractRouterSpec implementation type.R - the AbstractMessageRouter implementation type.public class AbstractRouterSpec<S extends AbstractRouterSpec<S,R>,R extends org.springframework.integration.router.AbstractMessageRouter> extends MessageHandlerSpec<S,R> implements ComponentsRegistration
MessageHandlerSpec for AbstractMessageRouters.| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.Object> |
subFlows |
id, logger, PARSER, target| Modifier and Type | Method and Description |
|---|---|
S |
applySequence(boolean applySequence) |
S |
defaultOutputChannel(org.springframework.messaging.MessageChannel channel)
Specify a
MessageChannel as a default output from the router. |
S |
defaultOutputChannel(java.lang.String channelName)
Specify a
MessageChannel bean name as a default output from the router. |
S |
defaultOutputToParentFlow()
Make a default output mapping of the router to the parent flow.
|
S |
defaultSubFlowMapping(IntegrationFlow subFlow)
Specify an
IntegrationFlow as an output from the router when no any other mapping has matched. |
java.util.Collection<java.lang.Object> |
getComponentsToRegister() |
S |
ignoreSendFailures(boolean ignoreSendFailures) |
_this, doGet, get, getId, getObject, getObjectType, id, isSingletonpublic S ignoreSendFailures(boolean ignoreSendFailures)
ignoreSendFailures - the ignoreSendFailures.AbstractMessageRouter.setIgnoreSendFailures(boolean)public S applySequence(boolean applySequence)
applySequence - the applySequence.AbstractMessageRouter.setApplySequence(boolean)public S defaultOutputChannel(java.lang.String channelName)
MessageChannel bean name as a default output from the router.channelName - the MessageChannel bean name.AbstractMessageRouter.setDefaultOutputChannelName(String)public S defaultOutputChannel(org.springframework.messaging.MessageChannel channel)
MessageChannel as a default output from the router.channel - the MessageChannel to use.AbstractMessageRouter.setDefaultOutputChannel(MessageChannel)public S defaultSubFlowMapping(IntegrationFlow subFlow)
IntegrationFlow as an output from the router when no any other mapping has matched.subFlow - the IntegrationFlow for default mapping.public S defaultOutputToParentFlow()
MessageChannel as a
AbstractMessageRouter.setDefaultOutputChannel(MessageChannel) of this router.public java.util.Collection<java.lang.Object> getComponentsToRegister()
getComponentsToRegister in interface ComponentsRegistration