Class AbstractRouterSpec<S extends AbstractRouterSpec<S,R>,R extends AbstractMessageRouter>
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,reactor.util.function.Tuple2<F,H>>
org.springframework.integration.dsl.EndpointSpec<S,ConsumerEndpointFactoryBean,H>
org.springframework.integration.dsl.ConsumerEndpointSpec<S,R>
org.springframework.integration.dsl.AbstractRouterSpec<S,R>
- Type Parameters:
S
- the targetAbstractRouterSpec
implementation type.R
- theAbstractMessageRouter
implementation type.
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<reactor.util.function.Tuple2<ConsumerEndpointFactoryBean,R>>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
,ComponentsRegistration
- Direct Known Subclasses:
RecipientListRouterSpec
,RouterSpec
public class AbstractRouterSpec<S extends AbstractRouterSpec<S,R>,R extends AbstractMessageRouter> extends ConsumerEndpointSpec<S,R>
- Since:
- 5.0
- Author:
- Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.EndpointSpec
componentsToRegister, endpointFactoryBean, handler
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRouterSpec(R router)
-
Method Summary
Modifier and Type Method Description S
applySequence(boolean applySequence)
S
defaultOutputChannel(String channelName)
Specify aMessageChannel
bean name as a default output from the router.S
defaultOutputChannel(MessageChannel channel)
Specify aMessageChannel
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 anIntegrationFlow
as an output from the router when no any other mapping has matched.S
ignoreSendFailures(boolean ignoreSendFailures)
protected boolean
isDefaultToParentFlow()
Methods inherited from class org.springframework.integration.dsl.ConsumerEndpointSpec
advice, async, autoStartup, customizeMonoReply, doGet, handleMessageAdvice, notPropagatedHeaders, order, phase, poller, reactive, reactive, requiresReply, role, sendTimeout, taskScheduler, transactional, transactional, transactional, transactional, transactional
Methods inherited from class org.springframework.integration.dsl.EndpointSpec
assertHandler, getComponentsToRegister, id, obtainInputChannelFromFlow, obtainInputChannelFromFlow, poller, poller
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
Method Details
-
ignoreSendFailures
- Parameters:
ignoreSendFailures
- the ignoreSendFailures.- Returns:
- the router spec.
- See Also:
AbstractMessageRouter.setIgnoreSendFailures(boolean)
-
applySequence
- Parameters:
applySequence
- the applySequence.- Returns:
- the router spec.
- See Also:
AbstractMessageRouter.setApplySequence(boolean)
-
defaultOutputChannel
Specify aMessageChannel
bean name as a default output from the router.- Parameters:
channelName
- theMessageChannel
bean name.- Returns:
- the router spec.
- See Also:
AbstractMessageRouter.setDefaultOutputChannelName(String)
-
defaultOutputChannel
Specify aMessageChannel
as a default output from the router.- Parameters:
channel
- theMessageChannel
to use.- Returns:
- the router spec.
- See Also:
AbstractMessageRouter.setDefaultOutputChannel(MessageChannel)
-
defaultSubFlowMapping
Specify anIntegrationFlow
as an output from the router when no any other mapping has matched.- Parameters:
subFlow
- theIntegrationFlow
for default mapping.- Returns:
- the router spec.
-
defaultOutputToParentFlow
Make a default output mapping of the router to the parent flow. Use the next, after router, parent flowMessageChannel
as aAbstractMessageRouter.setDefaultOutputChannel(MessageChannel)
of this router.- Returns:
- the router spec.
-
isDefaultToParentFlow
protected boolean isDefaultToParentFlow()
-