eolivelli commented on a change in pull request #1106: ZOOKEEPER-1416 - Persistent, recursive watchers URL: https://github.com/apache/zookeeper/pull/1106#discussion_r331076097
########## File path: zookeeper-server/src/main/java/org/apache/zookeeper/ZooKeeper.java ########## @@ -3028,6 +3147,104 @@ public void removeAllWatches(String path, WatcherType watcherType, boolean local removeWatches(ZooDefs.OpCode.removeWatches, path, null, watcherType, local, cb, ctx); } + /** + * Modes available to {@link ZooKeeper#addWatch(String, Watcher, AddWatchMode)} + */ + public enum AddWatchMode { Review comment: yes, this way if will be less tied to the ZooKeeper class, not a big deal. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services