Package org.apache.zookeeper
Class ZooKeeper.WatchRegistration
- java.lang.Object
- 
- org.apache.zookeeper.ZooKeeper.WatchRegistration
 
- 
- 
Constructor SummaryConstructors Constructor Description WatchRegistration(Watcher watcher, String clientPath)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Map<String,Set<Watcher>>getWatches(int rc)voidregister(int rc)Register the watcher with the set of watches on path.protected booleanshouldAddWatch(int rc)Determine whether the watch should be added based on return code.
 
- 
- 
- 
Method Detail- 
registerpublic void register(int rc) Register the watcher with the set of watches on path.- Parameters:
- rc- the result code of the operation that attempted to add the watch on the path.
 
 - 
shouldAddWatchprotected boolean shouldAddWatch(int rc) Determine whether the watch should be added based on return code.- Parameters:
- rc- the result code of the operation that attempted to add the watch on the node
- Returns:
- true if the watch should be added, otw false
 
 
- 
 
-