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.ConsumerEndpointSpec
adviceChain
Fields inherited from class org.springframework.integration.dsl.EndpointSpec
componentsToRegister, endpointFactoryBean, handler
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplySequence
(boolean applySequence) defaultOutputChannel
(String channelName) Specify aMessageChannel
bean name as a default output from the router.defaultOutputChannel
(MessageChannel channel) Specify aMessageChannel
as a default output from the router.Make a default output mapping of the router to the parent flow.defaultSubFlowMapping
(IntegrationFlow subFlow) Specify anIntegrationFlow
as an output from the router when no any other mapping has matched.ignoreSendFailures
(boolean ignoreSendFailures) protected boolean
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
-
AbstractRouterSpec
-
-
Method Details
-
ignoreSendFailures
- Parameters:
ignoreSendFailures
- the ignoreSendFailures.- Returns:
- the router spec.
- See Also:
-
applySequence
- Parameters:
applySequence
- the applySequence.- Returns:
- the router spec.
- See Also:
-
defaultOutputChannel
Specify aMessageChannel
bean name as a default output from the router.- Parameters:
channelName
- theMessageChannel
bean name.- Returns:
- the router spec.
- See Also:
-
defaultOutputChannel
Specify aMessageChannel
as a default output from the router.- Parameters:
channel
- theMessageChannel
to use.- Returns:
- the router spec.
- See Also:
-
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()
-