-
Enhancement
-
Resolution: Done
-
Major
-
4.0.0.Final, 4.1.0.BETA1
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()