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

   <i><a 
href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=iocanel";>iocanel</a>:</i>
   <p>A specific path can have more than one Watchers, so the path doesn't make 
a good key.</p>
   
   <p>Ideally, the maps could be combined in one MultiMap<String, Watcher> with 
soft values, but I couldn't find such implementation, So I used a 
Multimap<String,String> and a Cache<String, Watcher> with soft values and used 
a UUID for correlation. I preferred Cache instead of a second Map so that I can 
use a RemovalListener that would remove entries from the Multimap when they are 
garbage collected from the Cache.</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