@Configuration(proxyBeanMethods=false) @EnableBinding(value=SpringCloudBusClient.class) @EnableConfigurationProperties(value=BusProperties.class) @AutoConfigureBefore(value=org.springframework.cloud.stream.config.BindingServiceConfiguration.class) @AutoConfigureAfter(value={org.springframework.cloud.autoconfigure.LifecycleMvcEndpointAutoConfiguration.class,ServiceMatcherAutoConfiguration.class}) public class BusAutoConfiguration extends Object implements org.springframework.context.ApplicationEventPublisherAware
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BusAutoConfiguration.BusAckTraceConfiguration |
protected static class |
BusAutoConfiguration.BusEnvironmentConfiguration |
| Modifier and Type | Field and Description |
|---|---|
static String |
BUS_PATH_MATCHER_NAME
Name of the Bus path matcher.
|
static String |
CLOUD_CONFIG_NAME_PROPERTY
Name of the Spring Cloud Config property.
|
| Constructor and Description |
|---|
BusAutoConfiguration(ServiceMatcher serviceMatcher,
org.springframework.cloud.stream.config.BindingServiceProperties bindings,
BusProperties bus) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptLocal(RemoteApplicationEvent event) |
void |
acceptRemote(RemoteApplicationEvent event) |
void |
init() |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
void |
setCloudBusOutboundChannel(org.springframework.messaging.MessageChannel cloudBusOutboundChannel) |
public static final String BUS_PATH_MATCHER_NAME
public static final String CLOUD_CONFIG_NAME_PROPERTY
public BusAutoConfiguration(ServiceMatcher serviceMatcher, org.springframework.cloud.stream.config.BindingServiceProperties bindings, BusProperties bus)
@PostConstruct public void init()
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware@Autowired @Output(value="springCloudBusOutput") public void setCloudBusOutboundChannel(org.springframework.messaging.MessageChannel cloudBusOutboundChannel)
@EventListener(classes=RemoteApplicationEvent.class) public void acceptLocal(RemoteApplicationEvent event)
@StreamListener(value="springCloudBusInput") public void acceptRemote(RemoteApplicationEvent event)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.