public class EtcdClient extends Object
| 构造器和说明 |
|---|
EtcdClient(org.noear.solon.cloud.CloudProps cloudProps,
int sessionTimeout) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
attentionKey(String key,
io.etcd.jetcd.Watch.Listener listener) |
void |
attentionKeysWithPrefix(String prefix,
io.etcd.jetcd.Watch.Listener listener) |
void |
close()
关闭
|
io.etcd.jetcd.KeyValue |
get(String key) |
List<io.etcd.jetcd.KeyValue> |
getByPrefix(String key) |
String |
getValueString(String key) |
boolean |
put(String key,
String value) |
void |
putWithLease(String key,
String value) |
boolean |
remove(String key) |
String[] |
toURI(String[] endpoints) |
public EtcdClient(org.noear.solon.cloud.CloudProps cloudProps,
int sessionTimeout)
public io.etcd.jetcd.KeyValue get(String key)
public List<io.etcd.jetcd.KeyValue> getByPrefix(String key) throws ExecutionException, InterruptedException
public boolean remove(String key)
public void attentionKey(String key, io.etcd.jetcd.Watch.Listener listener)
public void attentionKeysWithPrefix(String prefix, io.etcd.jetcd.Watch.Listener listener)
public void close()
Copyright © 2024. All rights reserved.