Package org.apache.zookeeper.server.watch
-
Interface Summary Interface Description IDeadWatcherListener Interface used to process the dead watchers related to closed cnxns.IWatchManager -
Class Summary Class Description PathParentIterator Iterates over a ZooKeeper path.WatchBench WatchBench.AddSparseWatchState WatchBench.InvocationState WatchBench.IterationState WatchBench.TriggerSparseWatchState WatcherCleaner Thread used to lazily clean up the closed watcher, it will trigger the clean up when the dead watchers get certain number or some number of seconds has elapsed since last clean up.WatcherOrBitSet WatchesPathReport A watch report, essentially a mapping of path to session IDs of sessions that have set a watch on that path.WatchesReport A watch report, essentially a mapping of session ID to paths that the session has set a watch on.WatchesSummary A summary of watch information.WatchManager This class manages watches.WatchManagerFactory A factory used to produce the actual watch manager based on the zookeeper.watchManagerName option.WatchManagerOptimized Optimized in memory and time complexity, compared to WatchManager, both the memory consumption and time complexity improved a lot, but it cannot efficiently remove the watcher when the session or socket is closed, for majority use case this is not a problem. -
Enum Summary Enum Description WatcherMode