public final class AsyncRetryStrategy extends SyncRetryStrategy
| 构造器和说明 |
|---|
AsyncRetryStrategy(IProvider provider,
DelayRetryPolicy delayRetryPolicy) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
createAllNeedPath(String key,
String value,
org.apache.zookeeper.CreateMode createMode)
Create target node and all need created.
|
void |
createCurrentOnly(String key,
String value,
org.apache.zookeeper.CreateMode createMode)
Only create target node.
|
void |
deleteAllChildren(String key)
Delete target node and children nodes.
|
void |
deleteCurrentBranch(String key)
Delete the current node with force and delete the super node whose only child node is current node recursively.
|
void |
deleteOnlyCurrent(String key)
Only delete target node..
|
void |
update(String key,
String value)
Update.
|
checkExists, checkExists, getChildren, getDatadeleteOnlyCurrent, getDatagetDataString, transactionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProviderpublic AsyncRetryStrategy(IProvider provider, DelayRetryPolicy delayRetryPolicy)
public void createCurrentOnly(String key, String value, org.apache.zookeeper.CreateMode createMode) throws org.apache.zookeeper.KeeperException, InterruptedException
IActioncreateCurrentOnly 在接口中 IActioncreateCurrentOnly 在类中 SyncRetryStrategykey - keyvalue - valuecreateMode - createModeorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic void update(String key, String value) throws org.apache.zookeeper.KeeperException, InterruptedException
IActionupdate 在接口中 IActionupdate 在类中 SyncRetryStrategykey - keyvalue - valueorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic void deleteOnlyCurrent(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
IActiondeleteOnlyCurrent 在接口中 IActiondeleteOnlyCurrent 在类中 SyncRetryStrategykey - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic void createAllNeedPath(String key, String value, org.apache.zookeeper.CreateMode createMode) throws org.apache.zookeeper.KeeperException, InterruptedException
IGroupActioncreateAllNeedPath 在接口中 IGroupActioncreateAllNeedPath 在类中 SyncRetryStrategykey - keyvalue - valuecreateMode - create modeorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic void deleteAllChildren(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
IGroupActiondeleteAllChildren 在接口中 IGroupActiondeleteAllChildren 在类中 SyncRetryStrategykey - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic void deleteCurrentBranch(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
IGroupActiondeleteCurrentBranch 在接口中 IGroupActiondeleteCurrentBranch 在类中 SyncRetryStrategykey - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionCopyright © 2018. All rights reserved.