public final class CacheClient extends UsualClient
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close.
|
void |
createCurrentOnly(String key,
String value,
org.apache.zookeeper.CreateMode createMode)
Only create target node.
|
void |
deleteOnlyCurrent(String key)
Only delete target node..
|
void |
deleteOnlyCurrent(String key,
org.apache.zookeeper.AsyncCallback.VoidCallback callback,
Object ctx)
Only delete target node..
|
List<String> |
getChildren(String key)
Get children's keys.
|
byte[] |
getData(String key)
Get string type data.
|
void |
start()
Start.
|
checkExists, checkExists, createAllNeedPath, deleteAllChildren, deleteCurrentBranch, getData, getDataString, transaction, update, useExecStrategyblockUntilConnected, createNamespace, deleteNamespace, registerWatch, start, unregisterWatchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExecStrategypublic void start()
throws IOException,
InterruptedException
IClientstart 在接口中 IClientstart 在类中 BaseClientIOException - IO exceptionInterruptedException - interrupted exceptionpublic void close()
IClientclose 在接口中 IClientclose 在类中 UsualClientpublic void createCurrentOnly(String key, String value, org.apache.zookeeper.CreateMode createMode) throws org.apache.zookeeper.KeeperException, InterruptedException
IActioncreateCurrentOnly 在接口中 IActioncreateCurrentOnly 在类中 UsualClientkey - keyvalue - valuecreateMode - createModeorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic void deleteOnlyCurrent(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
IActiondeleteOnlyCurrent 在接口中 IActiondeleteOnlyCurrent 在类中 UsualClientkey - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic void deleteOnlyCurrent(String key, org.apache.zookeeper.AsyncCallback.VoidCallback callback, Object ctx) throws org.apache.zookeeper.KeeperException, InterruptedException
IActiondeleteOnlyCurrent 在接口中 IActiondeleteOnlyCurrent 在类中 UsualClientkey - keycallback - callbackctx - contextorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic byte[] getData(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
IActiongetData 在接口中 IActiongetData 在类中 UsualClientkey - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic List<String> getChildren(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
IActiongetChildren 在接口中 IActiongetChildren 在类中 UsualClientkey - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionCopyright © 2018. All rights reserved.