org.infinispan.atomic
Interface AtomicMapCache<K,V>
- All Superinterfaces:
- Cache<K,V>, ConcurrentMap<K,V>, Lifecycle, Listenable, Map<K,V>
- All Known Implementing Classes:
- CacheDelegate
public interface AtomicMapCache<K,V>
- extends Cache<K,V>
This interface adds the getAtomicMap() method which allows users to get a hold of a map type where operations on its
elements are all atomic. Refer to the AtomicMap
javadocs for more details.
- Since:
- 4.0
- Author:
- Manik Surtani (manik AT jboss DOT org)
- See Also:
AtomicMap
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Methods inherited from interface org.infinispan.Cache |
compact, endBatch, evict, getAdvancedCache, getCacheManager, getConfiguration, getName, getStatus, getVersion, put, put, putAll, putAll, putForExternalRead, putIfAbsent, putIfAbsent, replace, replace, replace, replace, startBatch |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
getAtomicMap
<AMK,AMV> AtomicMap<AMK,AMV> getAtomicMap(K key)
throws ClassCastException
- Returns an atomic map. The classes passed in are used to parameterize the Map returned.
- Type Parameters:
AMK
- map keysAMV
- map values- Parameters:
key
- key under which to obtain and store this map in the cache
- Returns:
- a new or existing atomic map. Never null.
- Throws:
ClassCastException
- if there already is a value stored under the given key and the type of value cannot be
used as an AtomicMap.
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.