Class RabbitConfiguration


  • @Configuration(proxyBeanMethods=false)
    @EnableConfigurationProperties(org.springframework.boot.autoconfigure.amqp.RabbitProperties.class)
    public class RabbitConfiguration
    extends Object
    Configuration for RabbitTemplate and CachingConnectionFactory.
    Since:
    3.2
    Author:
    Chris Bono
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate​(org.springframework.boot.autoconfigure.amqp.RabbitTemplateConfigurer configurer, org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)  
      org.springframework.boot.autoconfigure.amqp.RabbitTemplateConfigurer rabbitTemplateConfigurer​(org.springframework.boot.autoconfigure.amqp.RabbitProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.amqp.support.converter.MessageConverter> messageConverter, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.amqp.RabbitRetryTemplateCustomizer> retryTemplateCustomizers)  
    • Constructor Detail

      • RabbitConfiguration

        public RabbitConfiguration()
    • Method Detail

      • rabbitTemplateConfigurer

        @Bean
        @ConditionalOnMissingBean
        public org.springframework.boot.autoconfigure.amqp.RabbitTemplateConfigurer rabbitTemplateConfigurer​(org.springframework.boot.autoconfigure.amqp.RabbitProperties properties,
                                                                                                             org.springframework.beans.factory.ObjectProvider<org.springframework.amqp.support.converter.MessageConverter> messageConverter,
                                                                                                             org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.amqp.RabbitRetryTemplateCustomizer> retryTemplateCustomizers)
      • rabbitTemplate

        @Bean
        @ConditionalOnSingleCandidate(org.springframework.amqp.rabbit.connection.ConnectionFactory.class)
        @ConditionalOnMissingBean(org.springframework.amqp.rabbit.core.RabbitOperations.class)
        public org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate​(org.springframework.boot.autoconfigure.amqp.RabbitTemplateConfigurer configurer,
                                                                                  org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)