All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.leanix.dropkit.etcd.MinimalEtcdClient Maven / Gradle / Ivy

There is a newer version: 2.0.10
Show newest version
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