jira-importer commented on issue #535:
URL: https://github.com/apache/curator/issues/535#issuecomment-2604692442

   <i><a 
href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=iocanel";>iocanel</a>:</i>
   <p>I experimented with Eric's idea and created the attached patch.</p>
   
   <p>The patch introduces a global watcher (DispatchingWatcher) which 
dispatches events to all registered watchers. </p>
   
   <p>Watcher/Path pairs can be registered to the dispatcher (in the same 
manner that are registered in ZK itself). The main difference is that watcher 
instances are stored in a guava cache that uses soft values (weak values were 
too eager for some of curator tests, so went with soft).</p>
   
   <p>Registered watchers will be removed from the DispatchingWatcher when 
fired or garbage collected.</p>
   
   <p>A single watcher can be registered to many paths, but only once per 
path.</p>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@curator.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to