Package org.infinispan.atomic
Interface FineGrainedAtomicMap<K,V>
-
- All Superinterfaces:
Map<K,V>
- All Known Implementing Classes:
FineGrainedAtomicMapProxyImpl
public interface FineGrainedAtomicMap<K,V> extends Map<K,V>
FineGrainedAtomicMap is a special type of Map geared for use in Infinispan. In addition to the properties ofAtomicMap
, locking and isolation is applied on keys rather than entire map itself. UsageFineGrainedAtomicMap 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
.- Since:
- 5.1
- Author:
- Vladimir Blagojevic
- See Also:
AtomicMapLookup
,AtomicMap
-
-
Method Summary
-
Methods inherited from interface java.util.Map
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
-
-