public class EtcdClient extends Object implements KvStoreClient
| Modifier and Type | Class and Description |
|---|---|
static class |
EtcdClient.Builder |
protected static class |
EtcdClient.EtcdEventThread |
static class |
EtcdClient.Internal |
| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
ADDR_PATT |
static int |
DEFAULT_PORT |
static int |
DEFAULT_SESSION_TIMEOUT_SECS |
static long |
DEFAULT_TIMEOUT_MS |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected static <T> com.google.common.base.Predicate<T> |
constantPredicate(boolean val) |
protected static boolean |
contains(String str,
String subStr) |
protected static boolean |
endsWith(String str,
String... suffixes) |
static EtcdClient.Builder |
forEndpoint(String host,
int port) |
static EtcdClient.Builder |
forEndpoints(List<String> endpoints) |
static EtcdClient.Builder |
forEndpoints(String endpoints) |
Executor |
getExecutor() |
KvClient |
getKvClient() |
LeaseClient |
getLeaseClient() |
LockClient |
getLockClient() |
PersistentLease |
getSessionLease() |
ScheduledExecutorService |
internalScheduledExecutor() |
boolean |
isClosed() |
protected static boolean |
reauthRequired(Throwable error) |
protected static boolean |
retryAuthRequest(Throwable error) |
protected static boolean |
startsWith(String str,
String prefix) |
public static final int DEFAULT_PORT
public static final long DEFAULT_TIMEOUT_MS
public static final int DEFAULT_SESSION_TIMEOUT_SECS
protected static final Pattern ADDR_PATT
public static EtcdClient.Builder forEndpoint(String host, int port)
public static EtcdClient.Builder forEndpoints(List<String> endpoints)
public static EtcdClient.Builder forEndpoints(String endpoints)
public void close()
public boolean isClosed()
protected static boolean reauthRequired(Throwable error)
protected static boolean retryAuthRequest(Throwable error)
public KvClient getKvClient()
public LeaseClient getLeaseClient()
public LockClient getLockClient()
public PersistentLease getSessionLease()
public Executor getExecutor()
public ScheduledExecutorService internalScheduledExecutor()
protected static <T> com.google.common.base.Predicate<T> constantPredicate(boolean val)
Copyright © 2020. All rights reserved.