arun-gupta / microservices

Java EE and Microservices
629 stars 381 forks source link

Setup ZooKeeper path caches #28

Open arun-gupta opened 9 years ago

arun-gupta commented 9 years ago

Here is the pseudo code:

        PathChildrenCache pcache = new PathChildrenCache(curatorFramework, znode, true);
        pcache.start();

        List<ChildData> childdata = pcache.getCurrentData();

More details: http://curator.apache.org/curator-recipes/path-cache.html