Class CuratorFactory
java.lang.Object
org.springframework.cloud.zookeeper.CuratorFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.curator.framework.CuratorFrameworkcuratorFramework(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) static voidregisterCurator(org.springframework.boot.BootstrapRegistry registery, org.springframework.web.util.UriComponents location, boolean optional) static voidregisterCurator(org.springframework.boot.BootstrapRegistry registery, org.springframework.web.util.UriComponents location, boolean optional, Predicate<org.springframework.boot.BootstrapContext> predicate) static org.apache.curator.RetryPolicyretryPolicy(ZookeeperProperties properties)
-
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
-
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)
-