|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infinispan.atomic.AtomicMapLookup
public class AtomicMapLookup
A helper that locates or safely constructs and registers atomic maps with a given cache. This should be the only way AtomicMaps are created/retrieved, to prevent concurrent creation, registration and possibly overwriting of such a map within the cache.
AtomicMap| Constructor Summary | |
|---|---|
AtomicMapLookup()
|
|
| Method Summary | ||
|---|---|---|
static
|
getAtomicMap(Cache<MK,?> cache,
MK key)
Retrieves an atomic map from a given cache, stored under a given key. |
|
static
|
getAtomicMap(Cache<MK,?> cache,
MK key,
boolean createIfAbsent)
Retrieves an atomic map from a given cache, stored under a given key. |
|
static
|
getAtomicMap(Cache<MK,?> cache,
MK key,
FlagContainer flagContainer)
Deprecated. use getAtomicMap(org.infinispan.Cache, Object) |
|
static
|
getFineGrainedAtomicMap(Cache<MK,?> cache,
MK key)
Retrieves a fine grained atomic map from a given cache, stored under a given key. |
|
static
|
getFineGrainedAtomicMap(Cache<MK,?> cache,
MK key,
boolean createIfAbsent)
Retrieves an atomic map from a given cache, stored under a given key. |
|
static
|
getReadOnlyAtomicMap(Cache<MK,?> cache,
MK key)
Retrieves an atomic map from a given cache, stored under a given key, for reading only. |
|
static
|
removeAtomicMap(Cache<MK,?> cache,
MK key)
Removes the atomic map associated with the given key from the underlying cache. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AtomicMapLookup()
| Method Detail |
|---|
public static <MK,K,V> AtomicMap<K,V> getAtomicMap(Cache<MK,?> cache,
MK key)
MK - key param of the cacheK - key param of the AtomicMapV - value param of the AtomicMapcache - underlying cachekey - key under which the atomic map exists
public static <MK,K,V> FineGrainedAtomicMap<K,V> getFineGrainedAtomicMap(Cache<MK,?> cache,
MK key)
MK - key param of the cacheK - key param of the AtomicMapV - value param of the AtomicMapcache - underlying cachekey - key under which the atomic map exists
public static <MK,K,V> AtomicMap<K,V> getAtomicMap(Cache<MK,?> cache,
MK key,
boolean createIfAbsent)
MK - key param of the cacheK - key param of the AtomicMapV - value param of the AtomicMapcache - underlying cachekey - key under which the atomic map existscreateIfAbsent - if true, a new atomic map is created if one doesn't exist; otherwise null is returned if the
map didn't exist.
@Deprecated
public static <MK,K,V> AtomicMap<K,V> getAtomicMap(Cache<MK,?> cache,
MK key,
FlagContainer flagContainer)
getAtomicMap(org.infinispan.Cache, Object)
MK - key param of the cacheK - key param of the AtomicMapV - value param of the AtomicMapcache - underlying cachekey - key under which the atomic map existsflagContainer - a container to pass in per-invocation flags to the underlying cache. May be null if no
flags are used.
public static <MK,K,V> FineGrainedAtomicMap<K,V> getFineGrainedAtomicMap(Cache<MK,?> cache,
MK key,
boolean createIfAbsent)
MK - key param of the cacheK - key param of the AtomicMapV - value param of the AtomicMapcache - underlying cachekey - key under which the atomic map existscreateIfAbsent - if true, a new atomic map is created if one doesn't exist; otherwise null is returned if the
map didn't exist.
public static <MK,K,V> Map<K,V> getReadOnlyAtomicMap(Cache<MK,?> cache,
MK key)
MK - key param of the cacheK - key param of the AtomicMapV - value param of the AtomicMapcache - underlying cachekey - key under which the atomic map exists
public static <MK> void removeAtomicMap(Cache<MK,?> cache,
MK key)
MK - key param of the cachecache - underlying cachekey - key under which the atomic map exists
|
--> | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||