org.apache.zookeeper.server
Class WatchManager
java.lang.Object
org.apache.zookeeper.server.WatchManager
public class WatchManager
- extends Object
This class manages watches. It allows watches to be associated with a string
and removes watchers and their watches in addition to managing triggers.
WatchManager
public WatchManager()
size
public int size()
addWatch
public void addWatch(String path,
Watcher watcher)
removeWatcher
public void removeWatcher(Watcher watcher)
triggerWatch
public Set<Watcher> triggerWatch(String path,
Watcher.Event.EventType type)
triggerWatch
public Set<Watcher> triggerWatch(String path,
Watcher.Event.EventType type,
Set<Watcher> supress)
toString
public String toString()
- Brief description of this object.
- Overrides:
toString
in class Object
dumpWatches
public void dumpWatches(PrintWriter pwriter,
boolean byPath)
- String representation of watches. Warning, may be large!
- Parameters:
byPath
- iff true output watches by paths, otw output
watches by connection
Copyright © 2012 The Apache Software Foundation