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 -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.amqp.rabbit.core.RabbitTemplaterabbitTemplate(org.springframework.boot.autoconfigure.amqp.RabbitTemplateConfigurer configurer, org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory) org.springframework.boot.autoconfigure.amqp.RabbitTemplateConfigurerrabbitTemplateConfigurer(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 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)
-