Class WatchesReport
java.lang.Object
org.apache.zookeeper.server.watch.WatchesReport
A watch report, essentially a mapping of session ID to paths that the session
has set a watch on. This class is immutable.
-
Method Summary
-
Method Details
-
hasPaths
public boolean hasPaths(long sessionId) Checks if the given session has watches set.- Parameters:
sessionId- session ID- Returns:
- true if session has paths with watches set
-
getPaths
-
toMap
-