@Configuration
@ConditionalOnExpression(value="${axon.distributed.enabled:false} || ${axon.distributed.jgroups.enabled:false}")
@ConditionalOnClass(name={"org.axonframework.jgroups.commandhandling.JGroupsConnector","org.jgroups.JChannel"})
public class JGroupsAutoConfiguration
extends Object
| Constructor and Description |
|---|
JGroupsAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.jgroups.stack.GossipRouter |
gossipRouter() |
JGroupsConnectorFactoryBean |
jgroupsConnectorFactoryBean(Serializer messageSerializer,
CommandBus localSegment,
RoutingStrategy routingStrategy,
ConsistentHashChangeListener consistentHashChangeListener) |
@ConditionalOnProperty(value="axon.distributed.jgroups.gossip.autoStart") @Bean(destroyMethod="stop") public org.jgroups.stack.GossipRouter gossipRouter()
@ConditionalOnMissingBean(value={CommandRouter.class,CommandBusConnector.class})
@Bean
public JGroupsConnectorFactoryBean jgroupsConnectorFactoryBean(@Qualifier(value="messageSerializer")
Serializer messageSerializer,
@Qualifier(value="localSegment")
CommandBus localSegment,
RoutingStrategy routingStrategy,
@Autowired(required=false)
ConsistentHashChangeListener consistentHashChangeListener)
Copyright © 2010–2018. All rights reserved.