S
- the target AbstractRouterSpec
implementation type.R
- the AbstractMessageRouter
implementation type.public class AbstractRouterSpec<S extends AbstractRouterSpec<S,R>,R extends AbstractMessageRouter> extends ConsumerEndpointSpec<S,R>
adviceChain
componentsToRegister, endpointFactoryBean, handler
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
AbstractRouterSpec(R router) |
Modifier and Type | Method and Description |
---|---|
S |
applySequence(boolean applySequence) |
S |
defaultOutputChannel(MessageChannel channel)
Specify a
MessageChannel as a default output from the router. |
S |
defaultOutputChannel(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. |
S |
ignoreSendFailures(boolean ignoreSendFailures) |
protected boolean |
isDefaultToParentFlow() |
advice, async, autoStartup, customizeMonoReply, doGet, handleMessageAdvice, notPropagatedHeaders, order, phase, poller, requiresReply, role, sendTimeout, taskScheduler, transactional, transactional, transactional, transactional, transactional
assertHandler, getComponentsToRegister, id, obtainInputChannelFromFlow, obtainInputChannelFromFlow, poller, poller
_this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
protected AbstractRouterSpec(R router)
public S ignoreSendFailures(boolean ignoreSendFailures)
ignoreSendFailures
- the ignoreSendFailures.AbstractMessageRouter.setIgnoreSendFailures(boolean)
public S applySequence(boolean applySequence)
applySequence
- the applySequence.AbstractMessageRouter.setApplySequence(boolean)
public S defaultOutputChannel(String channelName)
MessageChannel
bean name as a default output from the router.channelName
- the MessageChannel
bean name.AbstractMessageRouter.setDefaultOutputChannelName(String)
public S defaultOutputChannel(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.protected boolean isDefaultToParentFlow()