Class RecipientListRouterSpec
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<RecipientListRouterSpec,RecipientListRouter>
org.springframework.integration.dsl.RecipientListRouterSpec
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<reactor.util.function.Tuple2<ConsumerEndpointFactoryBean,
,RecipientListRouter>> InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
,ComponentsRegistration
public class RecipientListRouterSpec
extends AbstractRouterSpec<RecipientListRouterSpec,RecipientListRouter>
An
AbstractRouterSpec
for a RecipientListRouter
.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell
-
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 TypeMethodDescriptionAdds a recipient channel that always will be selected.Adds a recipient channel that will be selected if the the expression evaluates to 'true'.recipient
(String channelName, Expression expression) Adds a recipient channel that will be selected if the the expression evaluates to 'true'.recipient
(String channelName, GenericSelector<P> selector) Adds a recipient channel that will be selected if the the selector's accept method returns 'true'.recipient
(MessageChannel channel) Adds a recipient channel that always will be selected.recipient
(MessageChannel channel, String expression) Adds a recipient channel that will be selected if the the expression evaluates to 'true'.recipient
(MessageChannel channel, Expression expression) Adds a recipient channel that will be selected if the the expression evaluates to 'true'.recipient
(MessageChannel channel, GenericSelector<P> selector) Adds a recipient channel that will be selected if the the selector's accept method returns 'true'.recipientFlow
(String expression, IntegrationFlow subFlow) Adds a subflow that will be invoked if the expression evaluates to 'true'.recipientFlow
(Expression expression, IntegrationFlow subFlow) Adds a subflow that will be invoked if the expression evaluates to 'true'.recipientFlow
(GenericSelector<P> selector, IntegrationFlow subFlow) Adds a subflow that will be invoked if the selector's accept methods returns 'true'.recipientFlow
(IntegrationFlow subFlow) Adds a subflow that will be invoked as a recipient.recipientMessageSelector
(String channelName, MessageSelector selector) Adds a recipient channel that will be selected if the the selector's accept method returns 'true'.recipientMessageSelector
(MessageChannel channel, MessageSelector selector) Adds a recipient channel that will be selected if the the selector's accept method returns 'true'.recipientMessageSelectorFlow
(MessageSelector selector, IntegrationFlow subFlow) Adds a subflow that will be invoked if the selector's accept methods returns 'true'.Methods inherited from class org.springframework.integration.dsl.AbstractRouterSpec
applySequence, defaultOutputChannel, defaultOutputChannel, defaultOutputToParentFlow, defaultSubFlowMapping, ignoreSendFailures, 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
-
RecipientListRouterSpec
protected RecipientListRouterSpec()
-
-
Method Details
-
recipient
Adds a recipient channel that always will be selected.- Parameters:
channelName
- the channel name.- Returns:
- the router spec.
-
recipient
Adds a recipient channel that will be selected if the the expression evaluates to 'true'.- Parameters:
channelName
- the channel name.expression
- the expression.- Returns:
- the router spec.
-
recipient
Adds a recipient channel that will be selected if the the expression evaluates to 'true'.- Parameters:
channelName
- the channel name.expression
- the expression.- Returns:
- the router spec.
-
recipientMessageSelector
public RecipientListRouterSpec recipientMessageSelector(String channelName, MessageSelector selector) Adds a recipient channel that will be selected if the the selector's accept method returns 'true'.- Parameters:
channelName
- the channel name.selector
- the selector.- Returns:
- the router spec.
-
recipient
Adds a recipient channel that will be selected if the the selector's accept method returns 'true'.- Type Parameters:
P
- the selector source type.- Parameters:
channelName
- the channel name.selector
- the selector.- Returns:
- the router spec.
-
recipient
Adds a recipient channel that always will be selected.- Parameters:
channel
- the recipient channel.- Returns:
- the router spec.
-
recipient
Adds a recipient channel that will be selected if the the expression evaluates to 'true'.- Parameters:
channel
- the recipient channel.expression
- the expression.- Returns:
- the router spec.
-
recipient
Adds a recipient channel that will be selected if the the expression evaluates to 'true'.- Parameters:
channel
- the recipient channel.expression
- the expression.- Returns:
- the router spec.
-
recipientMessageSelector
public RecipientListRouterSpec recipientMessageSelector(MessageChannel channel, MessageSelector selector) Adds a recipient channel that will be selected if the the selector's accept method returns 'true'.- Parameters:
channel
- the recipient channel.selector
- the selector.- Returns:
- the router spec.
-
recipient
Adds a recipient channel that will be selected if the the selector's accept method returns 'true'.- Type Parameters:
P
- the selector source type.- Parameters:
channel
- the recipient channel.selector
- the selector.- Returns:
- the router spec.
-
recipientMessageSelectorFlow
public RecipientListRouterSpec recipientMessageSelectorFlow(MessageSelector selector, IntegrationFlow subFlow) Adds a subflow that will be invoked if the selector's accept methods returns 'true'.- Parameters:
selector
- the selector.subFlow
- the subflow.- Returns:
- the router spec.
-
recipientFlow
public <P> RecipientListRouterSpec recipientFlow(GenericSelector<P> selector, IntegrationFlow subFlow) Adds a subflow that will be invoked if the selector's accept methods returns 'true'.- Type Parameters:
P
- the selector source type.- Parameters:
selector
- the selector.subFlow
- the subflow.- Returns:
- the router spec.
-
recipientFlow
Adds a subflow that will be invoked as a recipient.- Parameters:
subFlow
- the subflow.- Returns:
- the router spec.
-
recipientFlow
Adds a subflow that will be invoked if the expression evaluates to 'true'.- Parameters:
expression
- the expression.subFlow
- the subflow.- Returns:
- the router spec.
-
recipientFlow
Adds a subflow that will be invoked if the expression evaluates to 'true'.- Parameters:
expression
- the expression.subFlow
- the subflow.- Returns:
- the router spec.
-