public static class BkZooKeeperClient.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
BkZooKeeperClient.Builder |
allowReadOnlyMode(boolean allowReadOnlyMode) |
BkZooKeeperClient |
build() |
BkZooKeeperClient.Builder |
connectRetryPolicy(org.apache.bookkeeper.zookeeper.RetryPolicy retryPolicy) |
BkZooKeeperClient.Builder |
connectString(String connectString) |
BkZooKeeperClient.Builder |
operationRetryPolicy(org.apache.bookkeeper.zookeeper.RetryPolicy retryPolicy) |
BkZooKeeperClient.Builder |
requestRateLimit(double requestRateLimit) |
BkZooKeeperClient.Builder |
retryThreadCount(int numThreads) |
BkZooKeeperClient.Builder |
sessionTimeoutMs(int sessionTimeoutMs) |
BkZooKeeperClient.Builder |
statsLogger(org.apache.bookkeeper.stats.StatsLogger statsLogger) |
BkZooKeeperClient.Builder |
watchers(Set<org.apache.zookeeper.Watcher> watchers) |
public BkZooKeeperClient.Builder connectString(String connectString)
public BkZooKeeperClient.Builder sessionTimeoutMs(int sessionTimeoutMs)
public BkZooKeeperClient.Builder watchers(Set<org.apache.zookeeper.Watcher> watchers)
public BkZooKeeperClient.Builder connectRetryPolicy(org.apache.bookkeeper.zookeeper.RetryPolicy retryPolicy)
public BkZooKeeperClient.Builder operationRetryPolicy(org.apache.bookkeeper.zookeeper.RetryPolicy retryPolicy)
public BkZooKeeperClient.Builder statsLogger(org.apache.bookkeeper.stats.StatsLogger statsLogger)
public BkZooKeeperClient.Builder requestRateLimit(double requestRateLimit)
public BkZooKeeperClient.Builder retryThreadCount(int numThreads)
public BkZooKeeperClient.Builder allowReadOnlyMode(boolean allowReadOnlyMode)
public BkZooKeeperClient build() throws IOException, org.apache.zookeeper.KeeperException, InterruptedException
IOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionCopyright © 2017–2018 Apache Software Foundation. All rights reserved.