public class EtcdClient extends Object
| Constructor and Description |
|---|
EtcdClient(CloudProps cloudProps,
int sessionTimeout) |
| Modifier and Type | Method and Description |
|---|---|
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(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 © 2025. All rights reserved.