| Modifier and Type | Method and Description |
|---|---|
EtcdResult |
EtcdClient.cas(String key,
String prevValue,
String value)
Sets a key to a new value, if the value is a specified value
|
EtcdResult |
EtcdClient.createDirectory(String key)
Creates a directory
|
EtcdResult |
EtcdClient.delete(String key)
Deletes the given key
|
EtcdResult |
EtcdClient.deleteDirectory(String key)
Delete a directory
|
EtcdResult |
EtcdClient.get(String key)
Retrieves a key.
|
EtcdResult |
EtcdClient.listChildren(String key) |
EtcdResult |
EtcdClient.set(String key,
String value)
Sets a key to a new value
|
EtcdResult |
EtcdClient.set(String key,
String value,
Integer ttl)
Sets a key to a new value with an (optional) ttl
|
protected EtcdResult |
EtcdClient.syncExecute(org.apache.http.client.methods.HttpUriRequest request,
int[] expectedHttpStatusCodes,
int... expectedErrorCodes) |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.common.util.concurrent.ListenableFuture<EtcdResult> |
EtcdClient.asyncExecute(org.apache.http.client.methods.HttpUriRequest request,
int[] expectedHttpStatusCodes,
int... expectedErrorCodes) |
protected List<EtcdResult> |
EtcdClient.syncExecuteList(org.apache.http.client.methods.HttpUriRequest request) |
com.google.common.util.concurrent.ListenableFuture<EtcdResult> |
EtcdClient.watch(String key)
Watches the given subtree
|
com.google.common.util.concurrent.ListenableFuture<EtcdResult> |
EtcdClient.watch(String key,
Long index,
boolean recursive)
Watches the given subtree
|
| Constructor and Description |
|---|
EtcdClientException(String message,
EtcdResult result) |
Copyright © 2014. All Rights Reserved.