Class WatchesPathReport
- java.lang.Object
- 
- org.apache.zookeeper.server.watch.WatchesPathReport
 
- 
 public class WatchesPathReport extends Object A watch report, essentially a mapping of path to session IDs of sessions that have set a watch on that path. This class is immutable.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Long>getSessions(String path)Gets the session IDs of sessions that have set watches on the given path.booleanhasSessions(String path)Checks if the given path has watches set.Map<String,Set<Long>>toMap()Converts this report to a map.
 
- 
- 
- 
Method Detail- 
hasSessionspublic boolean hasSessions(String path) Checks if the given path has watches set.- Parameters:
- path- path
- Returns:
- true if path has watch set
 
 - 
getSessionspublic Set<Long> getSessions(String path) Gets the session IDs of sessions that have set watches on the given path. The returned set is immutable.- Parameters:
- path- session ID
- Returns:
- session IDs of sessions that have set watches on the path, or null if none
 
 
- 
 
-