public class EtcdHelper extends Object
| Constructor and Description |
|---|
EtcdHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
delete(io.etcd.jetcd.Client etcd,
String key) |
static Optional<String> |
get(io.etcd.jetcd.Client etcd,
String key) |
static Optional<Integer> |
getInt(io.etcd.jetcd.Client etcd,
String key) |
static io.etcd.jetcd.CloseableClient |
keepLeaseAlive(io.etcd.jetcd.Client etcd,
Long leaseId,
org.lable.oss.uniqueid.etcd.EtcdHelper.OnRelease onRelease) |
static void |
put(io.etcd.jetcd.Client etcd,
String key) |
static void |
put(io.etcd.jetcd.Client etcd,
String key,
int value) |
public static Optional<Integer> getInt(io.etcd.jetcd.Client etcd, String key) throws ExecutionException, InterruptedException
public static Optional<String> get(io.etcd.jetcd.Client etcd, String key) throws ExecutionException, InterruptedException
public static void put(io.etcd.jetcd.Client etcd,
String key,
int value)
throws ExecutionException,
InterruptedException
public static void put(io.etcd.jetcd.Client etcd,
String key)
throws ExecutionException,
InterruptedException
public static void delete(io.etcd.jetcd.Client etcd,
String key)
throws ExecutionException,
InterruptedException
public static io.etcd.jetcd.CloseableClient keepLeaseAlive(io.etcd.jetcd.Client etcd,
Long leaseId,
org.lable.oss.uniqueid.etcd.EtcdHelper.OnRelease onRelease)
Copyright © 2014–2021 Lable. All rights reserved.