@Configuration
@ConditionalOnClass(value={org.springframework.amqp.core.AmqpTemplate.class,org.springframework.amqp.rabbit.core.RabbitTemplate.class})
@EnableConfigurationProperties(value=AmqpBusProperties.class)
public class AmqpBusAutoConfiguration
extends Object
spring.cloud.bus.amqp.enabled. If there is a single
ConnectionFactory in the context it will be used, or if there is a one
qualified as @BusConnectionFactory it will be preferred over others,
otherwise the @Primary one will be used. If there are multiple unqualified
connection factories there will be an autowiring error. Note that Spring Boot (as of
1.2.2) creates a ConnectionFactory that is not @Primary, so if you
want to use one connection factory for the bus and another for business messages, you
need to create both, and annotate them @BusConnectionFactory and
@Primary respectively.| Constructor and Description |
|---|
AmqpBusAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.amqp.rabbit.core.RabbitTemplate |
amqpTemplate() |
org.springframework.integration.dsl.IntegrationFlow |
cloudBusAmqpInboundFlow(org.springframework.messaging.MessageChannel cloudBusInboundChannel) |
org.springframework.integration.dsl.IntegrationFlow |
cloudBusAmqpOutboundFlow(org.springframework.messaging.MessageChannel cloudBusOutboundChannel) |
protected org.springframework.amqp.core.FanoutExchange |
cloudBusExchange() |
protected org.springframework.amqp.core.Queue |
localCloudBusQueue() |
protected org.springframework.amqp.core.Binding |
localCloudBusQueueBinding() |
public org.springframework.amqp.rabbit.core.RabbitTemplate amqpTemplate()
@Bean protected org.springframework.amqp.core.FanoutExchange cloudBusExchange()
@Bean protected org.springframework.amqp.core.Binding localCloudBusQueueBinding()
@Bean protected org.springframework.amqp.core.Queue localCloudBusQueue()
@Bean
public org.springframework.integration.dsl.IntegrationFlow cloudBusAmqpOutboundFlow(@Qualifier(value="cloudBusOutboundChannel")
org.springframework.messaging.MessageChannel cloudBusOutboundChannel)
@Bean
public org.springframework.integration.dsl.IntegrationFlow cloudBusAmqpInboundFlow(@Qualifier(value="cloudBusInboundChannel")
org.springframework.messaging.MessageChannel cloudBusInboundChannel)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.