Class ZookeeperAutoConfiguration


  • @Configuration
    @EnableConfigurationProperties(ZookeeperProperties.class)
    @AutoConfigureAfter(org.springframework.cloud.zookeeper.ZookeeperAutoConfiguration.class)
    @ConditionalOnBean(org.apache.curator.framework.CuratorFramework.class)
    public class ZookeeperAutoConfiguration
    extends java.lang.Object
    Auto configuration for Zookeper components.
    Since:
    4.0.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ZookeeperAutoConfiguration

        public ZookeeperAutoConfiguration()
    • Method Detail

      • leaderInitiatorFactory

        @Bean
        @ConditionalOnMissingBean(org.springframework.integration.zookeeper.config.LeaderInitiatorFactoryBean.class)
        public 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.
        Parameters:
        client - The curator framework client to use
        zookeeperProperties - The Zookeeper properties to use
        Returns:
        The factory bean