Class RecipientListRouterSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<RecipientListRouterSpec, reactor.util.function.Tuple2<ConsumerEndpointFactoryBean, RecipientListRouter>>
org.springframework.integration.dsl.EndpointSpec<RecipientListRouterSpec, ConsumerEndpointFactoryBean, RecipientListRouter>
org.springframework.integration.dsl.ConsumerEndpointSpec<RecipientListRouterSpec, RecipientListRouter>
org.springframework.integration.dsl.AbstractRouterSpec<RecipientListRouterSpec, RecipientListRouter>
org.springframework.integration.dsl.RecipientListRouterSpec
- All Implemented Interfaces:
- 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 SummaryFields inherited from class org.springframework.integration.dsl.ConsumerEndpointSpecadviceChainFields inherited from class org.springframework.integration.dsl.EndpointSpeccomponentsToRegister, endpointFactoryBean, handlerFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionAdds a recipient channel that is always selected.Adds a recipient channel that will be selected if the expression evaluates to 'true'.recipient(String channelName, Expression expression) Adds a recipient channel that will be selected if the expression evaluates to 'true'.recipient(String channelName, GenericSelector<P> selector) Adds a recipient channel that will be selected if the selector's accept method returns 'true'.recipient(MessageChannel channel) Adds a recipient channel that always is selected.recipient(MessageChannel channel, String expression) Adds a recipient channel that will be selected if the expression evaluates to 'true'.recipient(MessageChannel channel, Expression expression) Adds a recipient channel that will be selected if the expression evaluates to 'true'.recipient(MessageChannel channel, GenericSelector<P> selector) Adds a recipient channel that will be selected if 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 selector's accept method returns 'true'.recipientMessageSelector(MessageChannel channel, MessageSelector selector) Adds a recipient channel that will be selected if 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.AbstractRouterSpecapplySequence, defaultOutputChannel, defaultOutputChannel, defaultOutputToParentFlow, defaultSubFlowMapping, ignoreSendFailures, isDefaultToParentFlowMethods inherited from class org.springframework.integration.dsl.ConsumerEndpointSpecadvice, async, autoStartup, customizeMonoReply, doGet, handleMessageAdvice, notPropagatedHeaders, order, phase, poller, reactive, reactive, requiresReply, role, sendTimeout, taskScheduler, transactional, transactional, transactional, transactional, transactionalMethods inherited from class org.springframework.integration.dsl.EndpointSpecassertHandler, getComponentsToRegister, id, obtainInputChannelFromFlow, obtainInputChannelFromFlow, poller, pollerMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
RecipientListRouterSpecprotected RecipientListRouterSpec()
 
- 
- 
Method Details- 
recipientAdds a recipient channel that is always selected.- Parameters:
- channelName- the channel name.
- Returns:
- the router spec.
 
- 
recipientAdds a recipient channel that will be selected if the expression evaluates to 'true'.- Parameters:
- channelName- the channel name.
- expression- the expression.
- Returns:
- the router spec.
 
- 
recipientAdds a recipient channel that will be selected if the expression evaluates to 'true'.- Parameters:
- channelName- the channel name.
- expression- the expression.
- Returns:
- the router spec.
 
- 
recipientMessageSelectorpublic RecipientListRouterSpec recipientMessageSelector(String channelName, MessageSelector selector) Adds a recipient channel that will be selected if the selector's accept method returns 'true'.- Parameters:
- channelName- the channel name.
- selector- the selector.
- Returns:
- the router spec.
 
- 
recipientAdds a recipient channel that will be selected if 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.
 
- 
recipientAdds a recipient channel that always is selected.- Parameters:
- channel- the recipient channel.
- Returns:
- the router spec.
 
- 
recipientAdds a recipient channel that will be selected if the expression evaluates to 'true'.- Parameters:
- channel- the recipient channel.
- expression- the expression.
- Returns:
- the router spec.
 
- 
recipientAdds a recipient channel that will be selected if the expression evaluates to 'true'.- Parameters:
- channel- the recipient channel.
- expression- the expression.
- Returns:
- the router spec.
 
- 
recipientMessageSelectorpublic RecipientListRouterSpec recipientMessageSelector(MessageChannel channel, MessageSelector selector) Adds a recipient channel that will be selected if the selector's accept method returns 'true'.- Parameters:
- channel- the recipient channel.
- selector- the selector.
- Returns:
- the router spec.
 
- 
recipientAdds a recipient channel that will be selected if 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.
 
- 
recipientMessageSelectorFlowpublic 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.
 
- 
recipientFlowpublic <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.
 
- 
recipientFlowAdds a subflow that will be invoked as a recipient.- Parameters:
- subFlow- the subflow.
- Returns:
- the router spec.
 
- 
recipientFlowAdds a subflow that will be invoked if the expression evaluates to 'true'.- Parameters:
- expression- the expression.
- subFlow- the subflow.
- Returns:
- the router spec.
 
- 
recipientFlowAdds a subflow that will be invoked if the expression evaluates to 'true'.- Parameters:
- expression- the expression.
- subFlow- the subflow.
- Returns:
- the router spec.
 
 
-