Class RabbitStreamMessageHandlerSpec

java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
org.springframework.integration.dsl.MessageHandlerSpec<RabbitStreamMessageHandlerSpec,RabbitStreamMessageHandler>
org.springframework.integration.amqp.dsl.RabbitStreamMessageHandlerSpec
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<RabbitStreamMessageHandler>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

public class RabbitStreamMessageHandlerSpec extends org.springframework.integration.dsl.MessageHandlerSpec<RabbitStreamMessageHandlerSpec,RabbitStreamMessageHandler>
The base MessageHandlerSpec for RabbitStreamMessageHandlers.
Since:
6.0
  • Method Details

    • headerMapper

      public RabbitStreamMessageHandlerSpec headerMapper(AmqpHeaderMapper headerMapper)
      Set a custom AmqpHeaderMapper for mapping request and reply headers.
      Parameters:
      headerMapper - the AmqpHeaderMapper to use.
      Returns:
      this spec.
    • mappedRequestHeaders

      public RabbitStreamMessageHandlerSpec mappedRequestHeaders(String... headers)
      Provide the header names that should be mapped from a request to a MessageHeaders.
      Parameters:
      headers - The request header names.
      Returns:
      this spec.
    • headersMappedLast

      public RabbitStreamMessageHandlerSpec headersMappedLast(boolean headersLast)
      Determine whether the headers are mapped before the message is converted, or afterwards.
      Parameters:
      headersLast - true to map headers last.
      Returns:
      this spec.
      See Also:
    • sendSuccessChannel

      public RabbitStreamMessageHandlerSpec sendSuccessChannel(org.springframework.messaging.MessageChannel channel)
      Set the success channel.
      Parameters:
      channel - the channel.
      Returns:
      this spec.
    • sendFailureChannel

      public RabbitStreamMessageHandlerSpec sendFailureChannel(org.springframework.messaging.MessageChannel channel)
      Set the failure channel. After a send failure, an ErrorMessage will be sent to this channel with a payload of the exception with the failed message.
      Parameters:
      channel - the channel.
      Returns:
      this spec.
    • sendSuccessChannel

      public RabbitStreamMessageHandlerSpec sendSuccessChannel(String channel)
      Set the success channel.
      Parameters:
      channel - the channel.
      Returns:
      this spec.
    • sendFailureChannel

      public RabbitStreamMessageHandlerSpec sendFailureChannel(String channel)
      Set the failure channel. After a send failure, an ErrorMessage will be sent to this channel with a payload of the exception with the failed message.
      Parameters:
      channel - the channel.
      Returns:
      this spec.
    • sync

      public RabbitStreamMessageHandlerSpec sync(boolean sync)
      Set to true to wait for a confirmation.
      Parameters:
      sync - true to wait.
      Returns:
      this spec.
      See Also:
    • confirmTimeout

      public RabbitStreamMessageHandlerSpec confirmTimeout(long timeout)
      Set a timeout for the confirm result.
      Parameters:
      timeout - the approximate timeout.
      Returns:
      this spec.
      See Also: