public class AtomicMapLookup extends Object
AtomicMap
Constructor and Description |
---|
AtomicMapLookup() |
Modifier and Type | Method and Description |
---|---|
static <MK,K,V> AtomicMap<K,V> |
getAtomicMap(Cache<MK,?> cache,
MK key)
Retrieves an atomic map from a given cache, stored under a given key.
|
static <MK,K,V> AtomicMap<K,V> |
getAtomicMap(Cache<MK,?> cache,
MK key,
boolean createIfAbsent)
Retrieves an atomic map from a given cache, stored under a given key.
|
static <MK,K,V> FineGrainedAtomicMap<K,V> |
getFineGrainedAtomicMap(Cache<MK,?> cache,
MK key)
Retrieves a fine grained atomic map from a given cache, stored under a given key.
|
static <MK,K,V> FineGrainedAtomicMap<K,V> |
getFineGrainedAtomicMap(Cache<MK,?> cache,
MK key,
boolean createIfAbsent)
Retrieves an atomic map from a given cache, stored under a given key.
|
static <MK,K,V> Map<K,V> |
getReadOnlyAtomicMap(Cache<MK,?> cache,
MK key)
Retrieves an atomic map from a given cache, stored under a given key, for reading only.
|
static <MK> void |
removeAtomicMap(Cache<MK,?> cache,
MK key)
Removes the atomic map associated with the given key from the underlying cache.
|
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 existspublic 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 existspublic 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.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 existspublic static <MK> void removeAtomicMap(Cache<MK,?> cache, MK key)
MK
- key param of the cachecache
- underlying cachekey
- key under which the atomic map existsCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.