Class RabbitTemplateConfigurer

java.lang.Object
org.springframework.boot.autoconfigure.amqp.RabbitTemplateConfigurer

public class RabbitTemplateConfigurer extends Object
Configure RabbitTemplate with sensible defaults.
Since:
2.3.0
Author:
Stephane Nicoll
  • Constructor Details

    • RabbitTemplateConfigurer

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

    • setMessageConverter

      public 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
      Since:
      2.6.0
    • setRetryTemplateCustomizers

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

      protected final RabbitProperties getRabbitProperties()
    • configure

      public void configure(org.springframework.amqp.rabbit.core.RabbitTemplate template, org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
      Configure the specified RabbitTemplate. The template can be further tuned and default settings can be overridden.
      Parameters:
      template - the RabbitTemplate instance to configure
      connectionFactory - the ConnectionFactory to use