[concurrency-interest] RFC -- Java7 java.util.concurrent plans

Joe Bowbeer joe.bowbeer at gmail.com
Wed Dec 10 11:02:58 EST 2008


On Wed, Dec 10, 2008 at 7:43 AM, Bob Lee wrote:

> On Tue, Dec 9, 2008 at 4:35 PM, Doug Lea wrote:
>
>> 3. ConcurrentReferenceHashMap
>>   A concurrent hash map allowing weak, soft, etc keys and values.
>
>
> BTW, I like the name "ReferenceMap" better.
>
>   - It's obviously concurrent because it's in the "concurrent" package.
>   - It doesn't makes sense to use anything but a hash-based implementation
> with references.
>   - We won't want a non-concurrent reference map because it will retain
> garbage for too long.
>   - I like shorter names.
>
> Bob
>
>
I like shorter names, but I also like consistency.

ConcurrentReferenceHashMap is more consistent with the naming of its sibling
classes, such as ConcurrentHashMap, whereas ReferenceMap is more consistent
with the naming of interfaces.

Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20081210/7d4c8124/attachment.html>


More information about the Concurrency-interest mailing list