public class SyncRetryStrategy extends UsualStrategy
| 构造器和说明 |
|---|
SyncRetryStrategy(IProvider provider,
DelayRetryPolicy delayRetryPolicy) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
checkExists(String key)
Check exist.
|
boolean |
checkExists(String key,
org.apache.zookeeper.Watcher watcher)
Check exist.
|
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..
|
List<String> |
getChildren(String key)
Get children's keys.
|
byte[] |
getData(String key)
Get string type data.
|
void |
update(String key,
String value)
Update.
|
deleteOnlyCurrent, getDatagetDataString, transactionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProviderpublic SyncRetryStrategy(IProvider provider, DelayRetryPolicy delayRetryPolicy)
public byte[] getData(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
IActiongetData 在接口中 IActiongetData 在类中 UsualStrategykey - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic boolean checkExists(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
IActioncheckExists 在接口中 IActioncheckExists 在类中 UsualStrategykey - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic boolean checkExists(String key, org.apache.zookeeper.Watcher watcher) throws org.apache.zookeeper.KeeperException, InterruptedException
IActioncheckExists 在接口中 IActioncheckExists 在类中 UsualStrategykey - keywatcher - watcherorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic List<String> getChildren(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
IActiongetChildren 在接口中 IActiongetChildren 在类中 UsualStrategykey - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic void createCurrentOnly(String key, String value, org.apache.zookeeper.CreateMode createMode) throws org.apache.zookeeper.KeeperException, InterruptedException
IActioncreateCurrentOnly 在接口中 IActioncreateCurrentOnly 在类中 UsualStrategykey - keyvalue - valuecreateMode - createModeorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic void update(String key, String value) throws org.apache.zookeeper.KeeperException, InterruptedException
IActionupdate 在接口中 IActionupdate 在类中 UsualStrategykey - keyvalue - valueorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic void deleteOnlyCurrent(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
IActiondeleteOnlyCurrent 在接口中 IActiondeleteOnlyCurrent 在类中 UsualStrategykey - 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 在类中 UsualStrategykey - keyvalue - valuecreateMode - create modeorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic void deleteAllChildren(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
IGroupActiondeleteAllChildren 在接口中 IGroupActiondeleteAllChildren 在类中 UsualStrategykey - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic void deleteCurrentBranch(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
IGroupActiondeleteCurrentBranch 在接口中 IGroupActiondeleteCurrentBranch 在类中 UsualStrategykey - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionCopyright © 2018. All rights reserved.