ml.shifu.guagua.coordinator.zk
接口 GuaguaZooKeeperOperation<T>
- 类型参数:
T - result for each command.
public interface GuaguaZooKeeperOperation<T>
GuaguaZooKeeperOperation is used as command to process same logic like re-trying.
|
方法摘要 |
T |
execute()
Performs the operation - which may be involved multiple times if the connection to ZooKeeper closes during this
operation. |
execute
T execute()
throws org.apache.zookeeper.KeeperException,
InterruptedException
- Performs the operation - which may be involved multiple times if the connection to ZooKeeper closes during this
operation.
- 返回:
- the result of the operation or null
- 抛出:
org.apache.zookeeper.KeeperException - by any zookeeper operation.
InterruptedException - by any zookeeper operation.
Copyright © 2014. All Rights Reserved.