...
Code Block |
---|
... Watcher myWatcher = ... curator.getData().usingWatcher(myWatcher).forPath(path); curator.getZookeeperClient().getZooKeeper().getData(path, myWatcher, stat); // myWatcher will get called twice when the data for path is changechanged |