Class GatewayEndpointSpec

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
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,​GatewayMessageHandler>>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, ComponentsRegistration

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

    • GatewayEndpointSpec

      protected GatewayEndpointSpec​(org.springframework.messaging.MessageChannel requestChannel)
    • GatewayEndpointSpec

      protected GatewayEndpointSpec​(java.lang.String requestChannel)
  • Method Details

    • replyChannel

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

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

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

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

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

      public GatewayEndpointSpec replyTimeout​(java.lang.Long replyTimeout)
      Set a reply timeout.
      Parameters:
      replyTimeout - the reply timeout
      Returns:
      the spec