public class MinimalEtcdClientImpl extends Object implements MinimalEtcdClient
| Constructor and Description |
|---|
MinimalEtcdClientImpl(URI etcdUri) |
| Modifier and Type | Method and Description |
|---|---|
String |
get(String key)
Retrieve the value of the given key, if set.
|
URI |
getEtcdUri() |
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 void set(String key, String value) throws EtcdException
MinimalEtcdClientset in interface MinimalEtcdClientEtcdExceptionCopyright © 2017 LeanIX GmbH. All rights reserved.