Interface used to process the dead watchers related to closed cnxns.
Iterates over a ZooKeeper path.
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.
A watch report, essentially a mapping of path to session IDs of sessions that have set a watch on that path.
A watch report, essentially a mapping of session ID to paths that the session has set a watch on.
A summary of watch information.
This class manages watches.
A factory used to produce the actual watch manager based on the zookeeper.watchManagerName option.
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.
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.