public class EtcdStore extends Object implements KVStore
| 构造器和说明 |
|---|
EtcdStore(com.coreos.jetcd.Client client) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
createParentNode(String parentNode) |
long |
delete(String key) |
boolean |
exists(String key) |
Node |
get(String key) |
List<Node> |
list(String prefix) |
List<String> |
listKeys(String prefix) |
long |
put(String key,
String value) |
long |
put(String key,
String value,
boolean ephemeral) |
void |
watchChildren(String key,
java.util.function.BiConsumer<Event,Node> consumer) |
void |
watchChildren(String key,
java.util.function.Supplier<Boolean> exitSignSupplier,
java.util.function.BiConsumer<Event,Node> consumer) |
public EtcdStore(com.coreos.jetcd.Client client)
throws ExecutionException,
InterruptedException
public Node get(String key) throws ExecutionException, InterruptedException
get 在接口中 KVStoreExecutionExceptionInterruptedExceptionpublic List<Node> list(String prefix) throws ExecutionException, InterruptedException
list 在接口中 KVStoreExecutionExceptionInterruptedExceptionpublic List<String> listKeys(String prefix) throws ExecutionException, InterruptedException
listKeys 在接口中 KVStoreExecutionExceptionInterruptedExceptionpublic long put(String key, String value) throws ExecutionException, InterruptedException
put 在接口中 KVStoreExecutionExceptionInterruptedExceptionpublic long put(String key, String value, boolean ephemeral) throws ExecutionException, InterruptedException
put 在接口中 KVStoreExecutionExceptionInterruptedExceptionpublic long delete(String key) throws ExecutionException, InterruptedException
delete 在接口中 KVStoreExecutionExceptionInterruptedExceptionpublic boolean exists(String key) throws ExecutionException, InterruptedException
exists 在接口中 KVStoreExecutionExceptionInterruptedExceptionpublic void watchChildren(String key, java.util.function.BiConsumer<Event,Node> consumer) throws InterruptedException
watchChildren 在接口中 KVStoreInterruptedExceptionpublic void watchChildren(String key, java.util.function.Supplier<Boolean> exitSignSupplier, java.util.function.BiConsumer<Event,Node> consumer) throws InterruptedException
watchChildren 在接口中 KVStoreInterruptedExceptionpublic void createParentNode(String parentNode) throws ExecutionException, InterruptedException
createParentNode 在接口中 KVStoreExecutionExceptionInterruptedExceptionpublic void close()
throws Exception
close 在接口中 AutoCloseableExceptionCopyright © 2018. All rights reserved.