Package org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent

Examples of org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent.Type


    public void start() throws Exception {
      // create the watcher for future configuration updatess
        pathChildrenCache.getListenable().addListener(new PathChildrenCacheListener() {
            public void childEvent(CuratorFramework aClient, PathChildrenCacheEvent event)
                    throws Exception {
                Type eventType = event.getType();
                ChildData data = event.getData();
               
                String path = null;
                if (data != null) {
                    path = data.getPath();
View Full Code Here


        ChildData childData = event.getData();
        if (childData == null) {
            return;
        }
        String path = childData.getPath();
        Type type = event.getType();
        byte[] data = childData.getData();
        if (data == null || data.length == 0 || path == null) {
            return;
        }
        if (path.startsWith(zkPath)) {
View Full Code Here

TOP

Related Classes of org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent.Type

Copyright © 2018 www.massapicom. 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.