[concurrency-interest] Java ConcurrentWeakHashMap
ben.manes at gmail.com
Mon Aug 1 16:50:10 EDT 2016
Guava's internally has a pluggable equality mechanism, but only exposes
identity as the most applicable in the observed use-cases. See
Interners#newWeakInterner() where equality is leveraged. It was difficult
to find other use-cases where equality was the correct choice, so to reduce
maintenance burden and user error the capability wasn't externalized.
There are a lot of other implementations though, e.g. search for
On Mon, Aug 1, 2016 at 12:30 PM, i hack <idontcareifigethacked at gmail.com>
> I can't find one in the JDK.
> Guava has one similar but it uses identity, I need it with equality.
> I came across these on the mailing list (from 3 1/2 yrs ago...):
> But don't know what is the best option, if there is one, as of today, to
> use a ConcurrentWeakHashMap, without rolling my own.
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest