Class AbstractRabbitListenerContainerFactoryConfigurer<T extends org.springframework.amqp.rabbit.config.AbstractRabbitListenerContainerFactory<?>>

java.lang.Object
org.springframework.boot.autoconfigure.amqp.AbstractRabbitListenerContainerFactoryConfigurer<T>
Type Parameters:
T - the container factory type.
Direct Known Subclasses:
DirectRabbitListenerContainerFactoryConfigurer, SimpleRabbitListenerContainerFactoryConfigurer

public abstract class AbstractRabbitListenerContainerFactoryConfigurer<T extends org.springframework.amqp.rabbit.config.AbstractRabbitListenerContainerFactory<?>> extends Object
Configure RabbitListenerContainerFactory with sensible defaults.
Since:
2.0.0
Author:
Gary Russell, Stephane Nicoll
  • Constructor Details

    • AbstractRabbitListenerContainerFactoryConfigurer

      protected AbstractRabbitListenerContainerFactoryConfigurer(RabbitProperties rabbitProperties)
      Creates a new configurer that will use the given rabbitProperties.
      Parameters:
      rabbitProperties - properties to use
      Since:
      2.6.0
  • Method Details

    • setMessageConverter

      protected void setMessageConverter(org.springframework.amqp.support.converter.MessageConverter messageConverter)
      Set the MessageConverter to use or null if the out-of-the-box converter should be used.
      Parameters:
      messageConverter - the MessageConverter
    • setMessageRecoverer

      protected void setMessageRecoverer(org.springframework.amqp.rabbit.retry.MessageRecoverer messageRecoverer)
      Set the MessageRecoverer to use or null to rely on the default.
      Parameters:
      messageRecoverer - the MessageRecoverer
    • setRetryTemplateCustomizers

      protected void setRetryTemplateCustomizers(List<RabbitRetryTemplateCustomizer> retryTemplateCustomizers)
      Set the RabbitRetryTemplateCustomizer instances to use.
      Parameters:
      retryTemplateCustomizers - the retry template customizers
    • getRabbitProperties

      protected final RabbitProperties getRabbitProperties()
    • configure

      public abstract void configure(T factory, org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
      Configure the specified rabbit listener container factory. The factory can be further tuned and default settings can be overridden.
      Parameters:
      factory - the AbstractRabbitListenerContainerFactory instance to configure
      connectionFactory - the ConnectionFactory to use
    • configure

      protected void configure(T factory, org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory, RabbitProperties.AmqpContainer configuration)