public static < MK , K , V > Map < K , V > getReadOnlyAtomicMap ( Cache < MK , ? > cache , MK key ) { AtomicMap < K , V > am = getAtomicMap ( cache , key , false ) ; if ( am == null ) return Collections . emptyMap ( ) ; else return immutableMapWrap ( am ) ; }
Retrieves an atomic map from a given cache stored under a given key for reading only . The atomic map returned will not support updates and if the map did not in fact exist an empty map is returned .