@Configuration @ConditionalOnProperty(value="axon.distributed.enabled") @ConditionalOnClass(name={"org.axonframework.springcloud.commandhandling.SpringCloudCommandRouter","org.axonframework.springcloud.commandhandling.SpringCloudHttpBackupCommandRouter","org.axonframework.springcloud.commandhandling.SpringHttpCommandBusConnector","org.springframework.cloud.client.discovery.DiscoveryClient","org.springframework.web.client.RestTemplate"}) public class SpringCloudAutoConfiguration extends Object
Constructor and Description |
---|
SpringCloudAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.web.client.RestTemplate |
restTemplate() |
CommandRouter |
springCloudCommandRouter(org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient,
org.springframework.cloud.client.serviceregistry.Registration localServiceInstance,
RoutingStrategy routingStrategy) |
SpringCloudHttpBackupCommandRouter |
springCloudHttpBackupCommandRouter(org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient,
org.springframework.cloud.client.serviceregistry.Registration localServiceInstance,
org.springframework.web.client.RestTemplate restTemplate,
RoutingStrategy routingStrategy) |
SpringHttpCommandBusConnector |
springHttpCommandBusConnector(CommandBus localSegment,
org.springframework.web.client.RestTemplate restTemplate,
Serializer serializer) |
@Bean @Primary @ConditionalOnMissingBean(value=CommandRouter.class) @ConditionalOnBean(value=org.springframework.cloud.client.discovery.DiscoveryClient.class) @ConditionalOnProperty(value="axon.distributed.spring-cloud.fallback-to-http-get", matchIfMissing=true) public SpringCloudHttpBackupCommandRouter springCloudHttpBackupCommandRouter(org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient, org.springframework.cloud.client.serviceregistry.Registration localServiceInstance, org.springframework.web.client.RestTemplate restTemplate, RoutingStrategy routingStrategy)
@Bean @ConditionalOnMissingBean @ConditionalOnBean(value=org.springframework.cloud.client.discovery.DiscoveryClient.class) public CommandRouter springCloudCommandRouter(org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient, org.springframework.cloud.client.serviceregistry.Registration localServiceInstance, RoutingStrategy routingStrategy)
@Bean @ConditionalOnMissingBean(value=CommandBusConnector.class) public SpringHttpCommandBusConnector springHttpCommandBusConnector(@Qualifier(value="localSegment") CommandBus localSegment, org.springframework.web.client.RestTemplate restTemplate, @Qualifier(value="messageSerializer") Serializer serializer)
@Bean @ConditionalOnMissingBean public org.springframework.web.client.RestTemplate restTemplate()
Copyright © 2010–2018. All rights reserved.