Curator n ˈkyoor͝ˌātər: a keeper or custodian of a museum or other collection - A ZooKeeper Keeper.
Apache Curator is a Java/JVM client library for Apache ZooKeeper, a distributed coordination service. It includes a highlevel API framework and utilities to make using Apache ZooKeeper much easier and more reliable. It also includes recipes for common use cases and extensions such as service discovery and a Java 8 asynchronous DSL.
CuratorFrameworkFactory
public static CuratorFramework newClient(String connectString, RetryPolicy retryPolicy)
public static CuratorFramework newClient(String connectString, int sessionTimeoutMs, int connectionTimeoutMs, RetryPolicy retryPolicy)
builder()
CuratorFramework
state
状态
CreateBuilder
DeleteBuilder
ExistsBuilder
SetDataBuilder
GetDataBuilder
GetChildrenBuilder
GetACLBuilder
SetACLBuilder
ReconfigBuilder
GetConfigBuilder
transaction
事务
4.0.1源码
1 |
|