@Configuration @EnableConfigurationProperties(value=ZookeeperProperties.class) @AutoConfigureAfter(value=org.springframework.cloud.zookeeper.ZookeeperAutoConfiguration.class) @ConditionalOnBean(value=org.apache.curator.framework.CuratorFramework.class) public class ZookeeperAutoConfiguration extends java.lang.Object
| Constructor and Description |
|---|
ZookeeperAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.integration.zookeeper.config.LeaderInitiatorFactoryBean |
leaderInitiatorFactory(org.apache.curator.framework.CuratorFramework client,
ZookeeperProperties zookeeperProperties)
The leadership initialization factory bean which will create a LeaderInitiator to kick off the leader election
process within this node for the cluster if Zookeeper is configured.
|
@Bean
@ConditionalOnMissingBean(value=org.springframework.integration.zookeeper.config.LeaderInitiatorFactoryBean.class)
public org.springframework.integration.zookeeper.config.LeaderInitiatorFactoryBean leaderInitiatorFactory(org.apache.curator.framework.CuratorFramework client,
ZookeeperProperties zookeeperProperties)
client - The curator framework client to usezookeeperProperties - The Zookeeper properties to use