[ 
https://issues.apache.org/jira/browse/COLLECTIONS-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14289033#comment-14289033
 ] 

Thomas Neidhart commented on COLLECTIONS-520:
---------------------------------------------

An existing CopyOnWrite map implementation is available here: 
https://bitbucket.org/atlassian/atlassian-util-concurrent/wiki/CopyOnWrite%20Maps

They are released with an Apache 2.0 license.

> Add a CopyOnWrite implementation of Map
> ---------------------------------------
>
>                 Key: COLLECTIONS-520
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-520
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: Map
>    Affects Versions: 4.0
>            Reporter: Daniel Feist
>             Fix For: 4.x
>
>
> Java provides implementations for List's and Set's but Map is missing.
> Jersey uses an implementation 
> ([com.sun.jersey.client.impl.CopyOnWriteHashMap|https://java.net/projects/jersey/sources/svn/content/trunk/jersey/jersey-client/src/main/java/com/sun/jersey/client/impl/CopyOnWriteHashMap.java])
>  but it doesn't fully implement Map because entrySet/keySet/values are not 
> mutable.
> I implemented a CaseInsensitiveCopyOnWriteMap in Mule and while it serves our 
> purposes it's not 100% complete and isn't thread-safe, and it would be good 
> to see an implementation in commons.  (BTW: I plan to extend from 
> AsbtractHashedMap once we moved to 4.0/4.1).  
> See:  
> [org.mule.util.CopyOnWriteCaseInsensitiveMap|https://github.com/mulesoft/mule/blob/716893e6231be47dccd3cfba9619762e146b4b84/core/src/main/java/org/mule/util/CopyOnWriteCaseInsensitiveMap.java]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to