net.leanix.dropkit.etcd.MinimalEtcdClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leanix-dropkit Show documentation
Show all versions of leanix-dropkit Show documentation
Base functionality for leanIX dropwizard-based services
package net.leanix.dropkit.etcd;
import java.net.URI;
import java.util.List;
public interface MinimalEtcdClient {
/**
* Retrieve the value of the given key, if set.
*
* @param key Key to look up
* @return value Value for the given key
* @throws EtcdException in case of an error (e.g. key doesn't exist)
*/
String get(String key) throws EtcdException;
/**
* Set a value under the given key.
* @param key
* @param value
* @return
* @throws EtcdException
*/
void set(String key, String value) throws EtcdException;
void delete(String key, boolean recursive) throws EtcdException;
List list(String key) throws EtcdException;
URI getEtcdUri();
boolean exists(String key) throws EtcdException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy