[infinispan-issues] [JBoss JIRA] Resolved: (ISPN-450) Add AtomicMapLookup method to use in Read Only operation without creating new map if none exists.
Manik Surtani (JIRA)
jira-events at lists.jboss.org
Tue May 25 11:09:54 EDT 2010
[ https://jira.jboss.org/browse/ISPN-450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manik Surtani resolved ISPN-450.
--------------------------------
Labels: atomic_map (was: )
Resolution: Done
> Add AtomicMapLookup method to use in Read Only operation without creating new map if none exists.
> ---------------------------------------------------------------------------------------------------
>
> Key: ISPN-450
> URL: https://jira.jboss.org/browse/ISPN-450
> Project: Infinispan
> Issue Type: Feature Request
> Components: Core API
> Affects Versions: 4.1.0.BETA1
> Reporter: Alexander Gavrilov
> Assignee: Manik Surtani
> Fix For: 4.1.0.CR1
>
>
> AtomicMapLookup declared as the *only* way AtomicMaps are created/retrieved. But getAtomicMap method has side effect and if no map exists in cache this method creates new one. Sometimes we need to use getAtomicMap in read only fashion without this side effect. One solution is to add Method getAtomicMapForRead that if no entry exists in cache returns something like Collections.emptyMap() and if entry exists returns wrapper like Collections.unmodifiableMap()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list