Class JmsMessageDrivenChannelAdapterSpec<S extends JmsMessageDrivenChannelAdapterSpec<S>>

Type Parameters:
S - the target JmsMessageDrivenChannelAdapterSpec implementation type.
All Implemented Interfaces:
DisposableBean, FactoryBean<JmsMessageDrivenEndpoint>, InitializingBean, Lifecycle, Phased, SmartLifecycle
Direct Known Subclasses:
JmsMessageDrivenChannelAdapterSpec.JmsMessageDrivenChannelAdapterListenerContainerSpec

public class JmsMessageDrivenChannelAdapterSpec<S extends JmsMessageDrivenChannelAdapterSpec<S>> extends MessageProducerSpec<S,JmsMessageDrivenEndpoint>
Since:
5.0
Author:
Artem Bilan, Gary Russell
  • Constructor Details

  • Method Details

    • jmsMessageConverter

      public S jmsMessageConverter(MessageConverter messageConverter)
      Parameters:
      messageConverter - the messageConverter.
      Returns:
      the spec.
      See Also:
    • headerMapper

      public S headerMapper(JmsHeaderMapper headerMapper)
      Parameters:
      headerMapper - the headerMapper.
      Returns:
      the spec.
      See Also:
    • extractPayload

      public S extractPayload(boolean extractRequestPayload)
      Parameters:
      extractRequestPayload - the extractRequestPayload.
      Returns:
      the spec.
      See Also:
    • shutdownContainerOnStop

      public S shutdownContainerOnStop(boolean shutdown)
      Set to 'false' to prevent listener container shutdown when the endpoint is stopped. Then, if so configured, any cached consumer(s) in the container will remain. Otherwise, the shared connection and will be closed and the listener invokers shut down; this behavior is new starting with version 5.1. Default: true.
      Parameters:
      shutdown - false to not shutdown.
      Returns:
      the spec.
      Since:
      5.1
    • retryTemplate

      public S retryTemplate(org.springframework.retry.support.RetryTemplate retryTemplate)
      Set a RetryTemplate to use for retrying a message delivery within the adapter. Unlike adding retry at the container level, this can be used with an ErrorMessageSendingRecoverer RecoveryCallback to publish to the error channel after retries are exhausted. You generally should not configure an error channel when using retry here, use a RecoveryCallback instead.
      Parameters:
      retryTemplate - the template.
      Since:
      6.3
      See Also:
    • recoveryCallback

      public S recoveryCallback(org.springframework.retry.RecoveryCallback<Message<?>> recoveryCallback)
      Set a RecoveryCallback when using retry within the adapter.
      Parameters:
      recoveryCallback - the callback.
      Since:
      6.3
      See Also: