Package org.apache.zookeeper
Class WatchDeregistration
- java.lang.Object
- 
- org.apache.zookeeper.WatchDeregistration
 
- 
 public class WatchDeregistration extends Object Handles the special case of removing watches which has registered for a client path
- 
- 
Constructor SummaryConstructors Constructor Description WatchDeregistration(String clientPath, Watcher watcher, Watcher.WatcherType watcherType, boolean local, org.apache.zookeeper.ZKWatchManager zkManager)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClientPath()Returns client path which has specified for unregistering its watcherMap<Watcher.Event.EventType,Set<Watcher>>unregister(int rc)Unregistering watcher that was added on path.
 
- 
- 
- 
Constructor Detail- 
WatchDeregistrationpublic WatchDeregistration(String clientPath, Watcher watcher, Watcher.WatcherType watcherType, boolean local, org.apache.zookeeper.ZKWatchManager zkManager) 
 
- 
 - 
Method Detail- 
unregisterpublic Map<Watcher.Event.EventType,Set<Watcher>> unregister(int rc) throws KeeperException Unregistering watcher that was added on path.- Parameters:
- rc- the result code of the operation that attempted to remove watch on the path.
- Throws:
- KeeperException
 
 - 
getClientPathpublic String getClientPath() Returns client path which has specified for unregistering its watcher- Returns:
- client path
 
 
- 
 
-