public final class TransactionContendStrategy extends ContentionStrategy
| 构造器和说明 |
|---|
TransactionContendStrategy(ITransactionProvider provider) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
createAllNeedPath(String key,
String value,
org.apache.zookeeper.CreateMode createMode)
Create target node and all need created.
|
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.
|
createCurrentOnly, deleteOnlyCurrent, deleteOnlyCurrent, getData, updatecheckExists, checkExists, getChildren, getDatagetDataString, transactionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProviderpublic TransactionContendStrategy(ITransactionProvider provider)
public void createAllNeedPath(String key, String value, org.apache.zookeeper.CreateMode createMode) throws org.apache.zookeeper.KeeperException, InterruptedException
IGroupActioncreateAllNeedPath 在接口中 IGroupActioncreateAllNeedPath 在类中 ContentionStrategykey - keyvalue - valuecreateMode - create modeorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic void deleteAllChildren(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
IGroupActiondeleteAllChildren 在接口中 IGroupActiondeleteAllChildren 在类中 ContentionStrategykey - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic void deleteCurrentBranch(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
IGroupActiondeleteCurrentBranch 在接口中 IGroupActiondeleteCurrentBranch 在类中 ContentionStrategykey - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionCopyright © 2018. All rights reserved.