Class RabbitConfiguration

java.lang.Object
org.springframework.cloud.stream.binder.rabbit.config.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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RabbitConfiguration

      public RabbitConfiguration()
  • Method Details

    • 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)