public interface IAction
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
checkExists(String key)
Check exist.
|
boolean |
checkExists(String key,
org.apache.zookeeper.Watcher watcher)
Check exist.
|
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 |
getData(String key,
org.apache.zookeeper.AsyncCallback.DataCallback callback,
Object ctx)
Get string type data.
|
String |
getDataString(String key)
Get string type data.
|
void |
update(String key,
String value)
Update.
|
String getDataString(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
key - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionbyte[] getData(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
key - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionvoid getData(String key, org.apache.zookeeper.AsyncCallback.DataCallback callback, Object ctx) throws org.apache.zookeeper.KeeperException, InterruptedException
key - keycallback - callbackctx - contextorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionboolean checkExists(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
key - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionboolean checkExists(String key, org.apache.zookeeper.Watcher watcher) throws org.apache.zookeeper.KeeperException, InterruptedException
key - keywatcher - watcherorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionList<String> getChildren(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
key - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionvoid createCurrentOnly(String key, String value, org.apache.zookeeper.CreateMode createMode) throws org.apache.zookeeper.KeeperException, InterruptedException
key - keyvalue - valuecreateMode - createModeorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionvoid update(String key, String value) throws org.apache.zookeeper.KeeperException, InterruptedException
key - keyvalue - valueorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionvoid deleteOnlyCurrent(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
key - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionvoid deleteOnlyCurrent(String key, org.apache.zookeeper.AsyncCallback.VoidCallback callback, Object ctx) throws org.apache.zookeeper.KeeperException, InterruptedException
key - keycallback - callbackctx - contextorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionCopyright © 2018. All rights reserved.