Class CuratorFactory

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

public abstract class CuratorFactory extends Object
  • Constructor Details

    • CuratorFactory

      public CuratorFactory()
  • Method Details

    • curatorFramework

      public static org.apache.curator.framework.CuratorFramework curatorFramework(ZookeeperProperties properties, org.apache.curator.RetryPolicy retryPolicy, Supplier<Stream<CuratorFrameworkCustomizer>> optionalCuratorFrameworkCustomizerProvider, Supplier<org.apache.curator.ensemble.EnsembleProvider> optionalEnsembleProvider, Supplier<org.apache.curator.drivers.TracerDriver> optionalTracerDriverProvider) throws Exception
      Throws:
      Exception
    • retryPolicy

      public static org.apache.curator.RetryPolicy retryPolicy(ZookeeperProperties properties)
    • registerCurator

      public static void registerCurator(org.springframework.boot.BootstrapRegistry registery, org.springframework.web.util.UriComponents location, boolean optional)
    • registerCurator

      public static void registerCurator(org.springframework.boot.BootstrapRegistry registery, org.springframework.web.util.UriComponents location, boolean optional, Predicate<org.springframework.boot.BootstrapContext> predicate)