public interface IClient extends IAction, IGroupAction
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
blockUntilConnected(int waitingTime,
TimeUnit timeUnit)
Block until connected.
|
void |
close()
Close.
|
IExecStrategy |
getExecStrategy()
Get execution strategy.
|
void |
registerWatch(String key,
ZookeeperEventListener zookeeperEventListener)
Register watcher.
|
void |
start()
Start.
|
boolean |
start(int waitingTime,
TimeUnit timeUnit)
Start until out.
|
BaseTransaction |
transaction()
Create zookeeper transaction.
|
void |
unregisterWatch(String key)
Unregister watcher.
|
void |
useExecStrategy(StrategyType strategyType)
Choice exec strategy.
|
checkExists, checkExists, createCurrentOnly, deleteOnlyCurrent, deleteOnlyCurrent, getChildren, getData, getData, getDataString, updatecreateAllNeedPath, deleteAllChildren, deleteCurrentBranchvoid start()
throws IOException,
InterruptedException
IOException - IO exceptionInterruptedException - interrupted exceptionboolean start(int waitingTime,
TimeUnit timeUnit)
throws IOException,
InterruptedException
waitingTime - waiting timetimeUnit - time unitIOException - IO exceptionInterruptedException - interrupted exceptionboolean blockUntilConnected(int waitingTime,
TimeUnit timeUnit)
throws InterruptedException
waitingTime - waiting timetimeUnit - time unitInterruptedException - interrupted exceptionvoid registerWatch(String key, ZookeeperEventListener zookeeperEventListener)
key - keyzookeeperEventListener - zookeeper event listenervoid unregisterWatch(String key)
key - keyvoid useExecStrategy(StrategyType strategyType)
strategyType - strategyTypeIExecStrategy getExecStrategy()
BaseTransaction transaction()
void close()
Copyright © 2018. All rights reserved.