@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) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
CompletableFuture<org.apache.zookeeper.data.Stat> |
exists(String path) |
CompletableFuture<byte[]> |
get(String path) |
String |
getConnectString() |
CompletableFuture<List<String>> |
list(String path) |
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)
public CompletableFuture<byte[]> get(String path)
public CompletableFuture<org.apache.zookeeper.data.Stat> exists(String path)
public CompletableFuture<List<String>> list(String path)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public String getConnectString()
Copyright © 2007–2019 Cloudera. All rights reserved.