zookeeper分布式锁(十)

来源:互联网 发布:免费管理会员软件 编辑:程序博客网 时间:2024/06/05 17:27



ZooKeeperOperation:


public interface ZooKeeperOperation {        /**     * Performs the operation - which may be involved multiple times if the connection     * to ZooKeeper closes during this operation     *     * @return the result of the operation or null     * @throws KeeperException     * @throws InterruptedException     */    public boolean execute() throws KeeperException, InterruptedException;}


0 0