@InterfaceAudience.Private public final class ReadOnlyZKClient extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
static String |
KEEPALIVE_MILLIS |
static String |
RECOVERY_RETRY |
static String |
RECOVERY_RETRY_INTERVAL_MILLIS |
Constructor and Description |
---|
ReadOnlyZKClient(org.apache.hadoop.conf.Configuration conf,
org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer retryTimer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
CompletableFuture<org.apache.zookeeper.data.Stat> |
exists(String path) |
CompletableFuture<org.apache.zookeeper.data.Stat> |
exists(String path,
long timeoutMs) |
CompletableFuture<byte[]> |
get(String path) |
CompletableFuture<byte[]> |
get(String path,
long timeoutMs) |
String |
getConnectString() |
CompletableFuture<List<String>> |
list(String path) |
CompletableFuture<List<String>> |
list(String path,
long timeoutMs) |
public static final String RECOVERY_RETRY
public static final String RECOVERY_RETRY_INTERVAL_MILLIS
public static final String KEEPALIVE_MILLIS
public ReadOnlyZKClient(org.apache.hadoop.conf.Configuration conf, org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer retryTimer)
public CompletableFuture<byte[]> get(String path, long timeoutMs)
public CompletableFuture<byte[]> get(String path)
public CompletableFuture<org.apache.zookeeper.data.Stat> exists(String path, long timeoutMs)
public CompletableFuture<org.apache.zookeeper.data.Stat> exists(String path)
public CompletableFuture<List<String>> list(String path, long timeoutMs)
public CompletableFuture<List<String>> list(String path)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public String getConnectString()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.