K - the type of keys maintained by this mapV - the type of mapped valuespublic class FineGrainedAtomicHashMapProxy<K,V> extends AtomicHashMapProxy<K,V> implements FineGrainedAtomicMap<K,V>
FineGrainedAtomicMap to provide consistency and isolation for concurrent readers
while writes may also be going on. The techniques used in this implementation are very similar to the lock-free
reader MVCC model used in the MVCCEntry implementations for the core data
container, which closely follow software transactional memory approaches to dealing with concurrency.
AtomicMapLookup helper, and would not be created by end-user code
directly.AtomicHashMapcache, cacheForWriting, deltaMapKey, flagContainer, startedReadingMap, transactionManager, transactionTablebatchContainer| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
protected AtomicHashMap<K,V> |
getDeltaMapForWrite() |
V |
getUncommitted(Object key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
int |
size() |
int |
sizeUncommitted() |
String |
toString() |
Collection<V> |
values() |
assertValid, getDeltaMapForRead, lookupEntryFromCurrentTransaction, toMapassertBatchingSupported, endAtomic, startAtomicprotected AtomicHashMap<K,V> getDeltaMapForWrite()
getDeltaMapForWrite in class AtomicHashMapProxy<K,V>public Collection<V> values()
public int size()
public int sizeUncommitted()
public boolean isEmpty()
public boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in class AtomicHashMapProxy<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>containsValue in class AtomicHashMapProxy<K,V>public void clear()
public String toString()
toString in class AtomicHashMapProxy<K,V>Copyright © 2012 JBoss by Red Hat. All Rights Reserved.