Class GatewayEndpointSpec

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

public class GatewayEndpointSpec extends ConsumerEndpointSpec<GatewayEndpointSpec,GatewayMessageHandler>
A ConsumerEndpointSpec implementation for a mid-flow GatewayMessageHandler.
Since:
5.0
Author:
Artem Bilan
  • Constructor Details

    • GatewayEndpointSpec

      protected GatewayEndpointSpec(MessageChannel requestChannel)
    • GatewayEndpointSpec

      protected GatewayEndpointSpec(String requestChannel)
  • Method Details

    • replyChannel

      public GatewayEndpointSpec replyChannel(MessageChannel replyChannel)
      Set a reply channel.
      Parameters:
      replyChannel - the reply channel
      Returns:
      the spec
    • replyChannel

      public GatewayEndpointSpec replyChannel(String replyChannel)
      Set a reply channel.
      Parameters:
      replyChannel - the reply channel
      Returns:
      the spec
    • errorChannel

      public GatewayEndpointSpec errorChannel(MessageChannel errorChannel)
      Set an error channel.
      Parameters:
      errorChannel - the error channel
      Returns:
      the spec
    • errorChannel

      public GatewayEndpointSpec errorChannel(String errorChannel)
      Set an error channel.
      Parameters:
      errorChannel - the error channel
      Returns:
      the spec
    • requestTimeout

      public GatewayEndpointSpec requestTimeout(Long requestTimeout)
      Set a request timeout.
      Parameters:
      requestTimeout - the request timeout
      Returns:
      the spec
    • replyTimeout

      public GatewayEndpointSpec replyTimeout(Long replyTimeout)
      Set a reply timeout.
      Parameters:
      replyTimeout - the reply timeout
      Returns:
      the spec
    • errorOnTimeout

      public GatewayEndpointSpec errorOnTimeout(boolean errorOnTimeout)
      Set a error on timeout flag.
      Parameters:
      errorOnTimeout - true to produce an error in case of a reply timeout.
      Returns:
      the spec.
      Since:
      6.2
      See Also: