Class ZookeeperAutoConfiguration

java.lang.Object
org.springframework.cloud.zookeeper.ZookeeperAutoConfiguration

@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties public class ZookeeperAutoConfiguration extends Object
Auto-configuration that sets up Zookeeper discovery.
Since:
1.0.0
Author:
Spencer Gibb
  • Constructor Details

    • ZookeeperAutoConfiguration

      public ZookeeperAutoConfiguration()
  • Method Details

    • zookeeperProperties

      @Bean @ConditionalOnMissingBean public ZookeeperProperties zookeeperProperties()
    • curatorFramework

      @Bean(destroyMethod="close") @ConditionalOnMissingBean public org.apache.curator.framework.CuratorFramework curatorFramework(ZookeeperProperties properties, org.apache.curator.RetryPolicy retryPolicy, org.springframework.beans.factory.ObjectProvider<CuratorFrameworkCustomizer> optionalCuratorFrameworkCustomizerProvider, org.springframework.beans.factory.ObjectProvider<org.apache.curator.ensemble.EnsembleProvider> optionalEnsembleProvider, org.springframework.beans.factory.ObjectProvider<org.apache.curator.drivers.TracerDriver> optionalTracerDriverProvider) throws Exception
      Throws:
      Exception
    • exponentialBackoffRetry

      @Bean @ConditionalOnMissingBean public org.apache.curator.RetryPolicy exponentialBackoffRetry(ZookeeperProperties properties)