public class MinimalEtcdClientImpl extends Object implements MinimalEtcdClient
| Constructor and Description |
|---|
MinimalEtcdClientImpl(URI etcdUri) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String key,
boolean recursive) |
boolean |
exists(String key) |
String |
get(String key)
Retrieve the value of the given key, if set.
|
URI |
getEtcdUri() |
List<String> |
list(String key) |
void |
set(String key,
String value)
Set a value under the given key.
|
public MinimalEtcdClientImpl(URI etcdUri)
public URI getEtcdUri()
getEtcdUri in interface MinimalEtcdClientpublic String get(String key) throws EtcdException
MinimalEtcdClientget in interface MinimalEtcdClientkey - Key to look upEtcdException - in case of an error (e.g. key doesn't exist)public boolean exists(String key) throws EtcdException
exists in interface MinimalEtcdClientEtcdExceptionpublic List<String> list(String key) throws EtcdException
list in interface MinimalEtcdClientEtcdExceptionpublic void set(String key, String value) throws EtcdException
MinimalEtcdClientset in interface MinimalEtcdClientEtcdExceptionpublic void delete(String key, boolean recursive) throws EtcdException
delete in interface MinimalEtcdClientEtcdExceptionCopyright © 2017 LeanIX GmbH. All rights reserved.