Package org.apache.zookeeper
Class WatchDeregistration
java.lang.Object
org.apache.zookeeper.WatchDeregistration
Handles the special case of removing watches which has registered for a
server path
-
Constructor Summary
ConstructorsConstructorDescriptionWatchDeregistration(String serverPath, Watcher watcher, Watcher.WatcherType watcherType, boolean local, org.apache.zookeeper.ZKWatchManager zkManager) -
Method Summary
Modifier and TypeMethodDescriptionReturns server path which has specified for unregistering its watcherunregister(int rc) Unregistering watcher that was added on path.
-
Constructor Details
-
WatchDeregistration
public WatchDeregistration(String serverPath, Watcher watcher, Watcher.WatcherType watcherType, boolean local, org.apache.zookeeper.ZKWatchManager zkManager)
-
-
Method Details
-
unregister
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
-
getServerPath
Returns server path which has specified for unregistering its watcher- Returns:
- server path
-