Class BarrierSpec

All Implemented Interfaces:
DisposableBean, FactoryBean<reactor.util.function.Tuple2<ConsumerEndpointFactoryBean,BarrierMessageHandler>>, InitializingBean, Lifecycle, Phased, SmartLifecycle, ComponentsRegistration

public class BarrierSpec extends ConsumerEndpointSpec<BarrierSpec,BarrierMessageHandler>
Since:
5.0
Author:
Artem Bilan
  • Constructor Details

    • BarrierSpec

      protected BarrierSpec(long timeout)
  • Method Details

    • outputProcessor

      public BarrierSpec outputProcessor(MessageGroupProcessor outputProcessor)
    • correlationStrategy

      public BarrierSpec correlationStrategy(CorrelationStrategy correlationStrategy)
    • discardChannel

      public BarrierSpec discardChannel(@Nullable MessageChannel discardChannel)
      Set the channel to which late arriving trigger messages are sent, or request message does not arrive in time.
      Parameters:
      discardChannel - the message channel for discarded triggers.
      Returns:
      the spec
      Since:
      6.2.10
    • discardChannel

      public BarrierSpec discardChannel(@Nullable String discardChannelName)
      Set the channel bean name to which late arriving trigger messages are sent, or request message does not arrive in time.
      Parameters:
      discardChannelName - the message channel for discarded triggers.
      Returns:
      the spec
      Since:
      6.2.10
    • triggerTimeout

      public BarrierSpec triggerTimeout(long triggerTimeout)
      Set the timeout in milliseconds when waiting for a request message.
      Parameters:
      triggerTimeout - the timeout in milliseconds when waiting for a request message.
      Returns:
      the spec
      Since:
      6.2.10
    • doGet

      public reactor.util.function.Tuple2<ConsumerEndpointFactoryBean,BarrierMessageHandler> doGet()
      Overrides:
      doGet in class ConsumerEndpointSpec<BarrierSpec,BarrierMessageHandler>