public interface FineGrainedAtomicMap<K,V> extends Map<K,V>
AtomicMap
, locking and isolation is applied on keys rather than entire map itself.
Usage
FineGrainedAtomicMap should be constructed and "registered" with Infinispan using the AtomicMapLookup
helper. This
helper ensures thread safe construction and registration of AtomicMap instances in Infinispan's data container. E.g.:
FineGrainedAtomicMap<String, Integer> map = AtomicMapLookup.getFineGrainedAtomicMap(cache, "my_atomic_map_key");
This interface, for all practical purposes, is just a marker interface that indicates that maps of this type will
be locked atomically in the cache and replicated in a fine grained manner, as it does not add any additional methods
to Map
.
AtomicMapLookup
,
AtomicMap
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.