|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.atomic.AtomicHashMap<K,V>
K
- V
- @NotThreadSafe public class AtomicHashMap<K,V>
Note that for replication to work properly, this class requires that all writes take place within the scope of an ongoing transaction or batch.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Method Summary | |
---|---|
void |
clear()
|
void |
commit()
Indicate that all deltas collected to date has been extracted (via a call to DeltaAware.delta() ) and can be
discarded. |
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
AtomicHashMap |
copyForWrite()
|
Delta |
delta()
Extracts changes made to implementations, in an efficient format that can easily and cheaply be serialized and deserialized. |
Set<Map.Entry<K,V>> |
entrySet()
|
V |
get(Object key)
|
AtomicMap |
getProxy(Cache cache,
Object mapKey,
BatchContainer batchContainer,
InvocationContextContainer invocationContextContainer)
|
void |
initForWriting()
Initializes the delta instance to start recording changes. |
boolean |
isEmpty()
|
Set<K> |
keySet()
|
static AtomicHashMap |
newInstance(Cache cache,
Object cacheKey)
Construction only allowed through this factory method. |
V |
put(K key,
V value)
|
void |
putAll(Map<? extends K,? extends V> t)
|
V |
remove(Object key)
|
int |
size()
|
String |
toString()
|
Collection<V> |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Method Detail |
---|
public static AtomicHashMap newInstance(Cache cache, Object cacheKey)
AtomicMapCache.getAtomicMap(Object)
.
public void commit()
DeltaAware
DeltaAware.delta()
) and can be
discarded.
commit
in interface DeltaAware
public int size()
size
in interface Map<K,V>
public boolean isEmpty()
isEmpty
in interface Map<K,V>
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
public V get(Object key)
get
in interface Map<K,V>
public V put(K key, V value)
put
in interface Map<K,V>
public V remove(Object key)
remove
in interface Map<K,V>
public void putAll(Map<? extends K,? extends V> t)
putAll
in interface Map<K,V>
public void clear()
clear
in interface Map<K,V>
public Set<K> keySet()
keySet
in interface Map<K,V>
public Collection<V> values()
values
in interface Map<K,V>
public Set<Map.Entry<K,V>> entrySet()
entrySet
in interface Map<K,V>
public AtomicMap getProxy(Cache cache, Object mapKey, BatchContainer batchContainer, InvocationContextContainer invocationContextContainer)
public Delta delta()
DeltaAware
delta
in interface DeltaAware
public AtomicHashMap copyForWrite()
public String toString()
toString
in class Object
public void initForWriting()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |