Package org.jboss.resteasy.util.snapshot
Class SnapshotMap<K,V> 
java.lang.Object
org.jboss.resteasy.util.snapshot.SnapshotMap<K,V> 
- All Implemented Interfaces:
 ConcurrentMap<K,,V> Map<K,V> 
Acts as a HashMap until lockSnapshots is called. After that, it is a copy on write strategy.
- 
Nested Class Summary
 - 
Constructor Summary
ConstructorsConstructorDescriptionSnapshotMap(boolean lockSnapshots) SnapshotMap(Map<K, V> existing, boolean shallow, boolean lockSnapshots, boolean snapFirst)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanisEmpty()keySet()voidvoidputIfAbsent(K key, V value) booleanbooleanintsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll 
- 
Constructor Details
- 
SnapshotMap
public SnapshotMap(boolean lockSnapshots)  - 
SnapshotMap
 
 - 
 - 
Method Details
- 
lockSnapshots
public void lockSnapshots() - 
putIfAbsent
- Specified by:
 putIfAbsentin interfaceConcurrentMap<K,V> - Specified by:
 putIfAbsentin interfaceMap<K,V> 
 - 
remove
 - 
replace
 - 
replace
 - 
size
public int size() - 
isEmpty
public boolean isEmpty() - 
containsKey
- Specified by:
 containsKeyin interfaceMap<K,V> 
 - 
containsValue
- Specified by:
 containsValuein interfaceMap<K,V> 
 - 
get
 - 
put
 - 
remove
 - 
putAll
 - 
clear
public void clear() - 
keySet
 - 
values
 - 
entrySet
 
 -