org.infinispan.atomic
Class AtomicMapLookup
java.lang.Object
org.infinispan.atomic.AtomicMapLookup
public class AtomicMapLookup
- extends Object
A helper that locates atomic maps within a given cache. This should be the only way AtomicMaps are created/retrieved.
- Since:
- 4.0
- Author:
- Manik Surtani
Method Summary |
static
|
getAtomicMap(Cache<?,?> cache,
MK key)
Retrieves an atomic map from a given cache, stored under a given key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AtomicMapLookup
public AtomicMapLookup()
getAtomicMap
public static <MK,K,V> AtomicMap<K,V> getAtomicMap(Cache<?,?> cache,
MK key)
- Retrieves an atomic map from a given cache, stored under a given key. If an AtomicMap did not exist, one is created
and registered in an atomic fashion.
- Type Parameters:
K
- key param of the AtomicMapV
- value param of the AtomicMap- Parameters:
cache
- underlying cache
- Returns:
- an AtomicMap
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.