Package com.netflix.curator.framework

Examples of com.netflix.curator.framework.CuratorFramework.checkExists()


        // get the data
        client.getData().watched().inBackground().forPath("/test");

        // check the path exits
        client.checkExists().forPath(path);

        return "@adf";
    }

    public static void main(String[] args) throws Exception {
View Full Code Here


        // 取数据
        client.getData().watched().inBackground().forPath("/test");

        // 检查路径是否存在
        client.checkExists().forPath(path);

        // 异步删除
        client.delete().inBackground().forPath("/head");

        // 注册观察者,当节点变动时触发
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.