ml.shifu.guagua.coordinator.zk
接口 GuaguaZooKeeperOperation<T>

类型参数:
T - result for each command.

public interface GuaguaZooKeeperOperation<T>

GuaguaZooKeeperOperation is used as command to process consistent logic like re-trying for all zookeeper operations (create, get, ...).


方法摘要
 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 © 2015. All Rights Reserved.