Class RecipientListRouterSpec

All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<reactor.util.function.Tuple2<ConsumerEndpointFactoryBean,RecipientListRouter>>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, ComponentsRegistration

public class RecipientListRouterSpec extends AbstractRouterSpec<RecipientListRouterSpec,RecipientListRouter>
Since:
5.0
  • Constructor Details

    • RecipientListRouterSpec

      protected RecipientListRouterSpec()
  • Method Details

    • recipient

      public RecipientListRouterSpec recipient(String channelName)
      Adds a recipient channel that always will be selected.
      Parameters:
      channelName - the channel name.
      Returns:
      the router spec.
    • recipient

      public RecipientListRouterSpec recipient(String channelName, String expression)
      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

      public RecipientListRouterSpec recipient(String channelName, org.springframework.expression.Expression expression)
      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

      public <P> RecipientListRouterSpec recipient(String channelName, GenericSelector<P> selector)
      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

      public RecipientListRouterSpec recipient(org.springframework.messaging.MessageChannel channel)
      Adds a recipient channel that always will be selected.
      Parameters:
      channel - the recipient channel.
      Returns:
      the router spec.
    • recipient

      public RecipientListRouterSpec recipient(org.springframework.messaging.MessageChannel channel, String expression)
      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

      public RecipientListRouterSpec recipient(org.springframework.messaging.MessageChannel channel, org.springframework.expression.Expression expression)
      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(org.springframework.messaging.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

      public <P> RecipientListRouterSpec recipient(org.springframework.messaging.MessageChannel channel, GenericSelector<P> selector)
      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

      public RecipientListRouterSpec recipientFlow(IntegrationFlow subFlow)
      Adds a subflow that will be invoked as a recipient.
      Parameters:
      subFlow - the subflow.
      Returns:
      the router spec.
    • recipientFlow

      public RecipientListRouterSpec recipientFlow(String expression, IntegrationFlow subFlow)
      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

      public RecipientListRouterSpec recipientFlow(org.springframework.expression.Expression expression, IntegrationFlow subFlow)
      Adds a subflow that will be invoked if the expression evaluates to 'true'.
      Parameters:
      expression - the expression.
      subFlow - the subflow.
      Returns:
      the router spec.