public class ContentionStrategy extends UsualStrategy
| 构造器和说明 |
|---|
ContentionStrategy(IProvider provider) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
deleteOnlyCurrent(String key,
org.apache.zookeeper.AsyncCallback.VoidCallback callback,
Object ctx)
Only delete target node..
|
void |
getData(String key,
org.apache.zookeeper.AsyncCallback.DataCallback callback,
Object ctx)
Get string type data.
|
void |
update(String key,
String value)
Update.
|
checkExists, checkExists, getChildren, getDatagetDataString, transactionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProviderpublic ContentionStrategy(IProvider provider)
public final void getData(String key, org.apache.zookeeper.AsyncCallback.DataCallback callback, Object ctx) throws org.apache.zookeeper.KeeperException, InterruptedException
IActiongetData 在接口中 IActiongetData 在类中 UsualStrategykey - keycallback - callbackctx - contextorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic final 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 final void update(String key, String value) throws org.apache.zookeeper.KeeperException, InterruptedException
IActionupdate 在接口中 IActionupdate 在类中 UsualStrategykey - keyvalue - valueorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic final void deleteOnlyCurrent(String key) throws org.apache.zookeeper.KeeperException, InterruptedException
IActiondeleteOnlyCurrent 在接口中 IActiondeleteOnlyCurrent 在类中 UsualStrategykey - keyorg.apache.zookeeper.KeeperException - zookeeper exceptionInterruptedException - interrupted exceptionpublic final void deleteOnlyCurrent(String key, org.apache.zookeeper.AsyncCallback.VoidCallback callback, Object ctx) throws org.apache.zookeeper.KeeperException, InterruptedException
IActiondeleteOnlyCurrent 在接口中 IActiondeleteOnlyCurrent 在类中 UsualStrategykey - keycallback - callbackctx - contextorg.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.