Uses of Class
org.apache.zookeeper.client.ZooKeeperBuilder
Packages that use ZooKeeperBuilder
-
Uses of ZooKeeperBuilder in org.apache.zookeeper
Methods in org.apache.zookeeper that return ZooKeeperBuilderModifier and TypeMethodDescriptionstatic ZooKeeperBuilderCreates a builder with given connect string and session timeout. -
Uses of ZooKeeperBuilder in org.apache.zookeeper.client
Methods in org.apache.zookeeper.client that return ZooKeeperBuilderModifier and TypeMethodDescriptionZooKeeperBuilder.withCanBeReadOnly(boolean canBeReadOnly) Specifies whether the created client is allowed to go to read-only mode in case of partitioning.ZooKeeperBuilder.withClientConfig(ZKClientConfig clientConfig) Specifies the client config used to construct ZooKeeper instances.ZooKeeperBuilder.withDefaultWatcher(Watcher watcher) Specified watcher to receive state changes, and node events if attached later.ZooKeeperBuilder.withHostProvider(Function<Collection<InetSocketAddress>, HostProvider> hostProvider) Specifies a function to construct aHostProviderwith initial server addresses from connect string.ZooKeeperBuilder.withNewSessionTimeout(Duration timeout) Specifies timeout to establish a brand-new session.ZooKeeperBuilder.withSession(long sessionId, byte[] sessionPasswd) Specifies session id and password in session reestablishment.