Package org.jboss.el.cache
Class BeanPropertiesCache.SoftConcurrentHashMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.concurrent.ConcurrentHashMap<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>
-
- org.jboss.el.cache.BeanPropertiesCache.SoftConcurrentHashMap
-
- All Implemented Interfaces:
java.io.Serializable,java.util.concurrent.ConcurrentMap<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>,java.util.Map<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>
- Enclosing class:
- BeanPropertiesCache
public static class BeanPropertiesCache.SoftConcurrentHashMap extends java.util.concurrent.ConcurrentHashMap<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
java.util.concurrent.ConcurrentHashMap.KeySetView<K extends java.lang.Object,V extends java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description private static intCACHE_INIT_SIZEprivate java.util.concurrent.ConcurrentHashMap<java.lang.Class<?>,BeanPropertiesCache.BPSoftReference>mapprivate java.lang.ref.ReferenceQueue<BeanPropertiesCache.BeanProperties>refQ
-
Constructor Summary
Constructors Constructor Description SoftConcurrentHashMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcleanup()protected voidclear(java.lang.ClassLoader classLoader)BeanPropertiesCache.BeanPropertiesget(java.lang.Object key)BeanPropertiesCache.BeanPropertiesput(java.lang.Class<?> key, BeanPropertiesCache.BeanProperties value)BeanPropertiesCache.BeanPropertiesputIfAbsent(java.lang.Class<?> key, BeanPropertiesCache.BeanProperties value)-
Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, putAll, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
-
-
-
-
Field Detail
-
CACHE_INIT_SIZE
private static final int CACHE_INIT_SIZE
- See Also:
- Constant Field Values
-
map
private java.util.concurrent.ConcurrentHashMap<java.lang.Class<?>,BeanPropertiesCache.BPSoftReference> map
-
refQ
private java.lang.ref.ReferenceQueue<BeanPropertiesCache.BeanProperties> refQ
-
-
Method Detail
-
cleanup
private void cleanup()
-
clear
protected void clear(java.lang.ClassLoader classLoader)
-
put
public BeanPropertiesCache.BeanProperties put(java.lang.Class<?> key, BeanPropertiesCache.BeanProperties value)
- Specified by:
putin interfacejava.util.Map<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>- Overrides:
putin classjava.util.concurrent.ConcurrentHashMap<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>
-
putIfAbsent
public BeanPropertiesCache.BeanProperties putIfAbsent(java.lang.Class<?> key, BeanPropertiesCache.BeanProperties value)
- Specified by:
putIfAbsentin interfacejava.util.concurrent.ConcurrentMap<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>- Specified by:
putIfAbsentin interfacejava.util.Map<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>- Overrides:
putIfAbsentin classjava.util.concurrent.ConcurrentHashMap<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>
-
get
public BeanPropertiesCache.BeanProperties get(java.lang.Object key)
- Specified by:
getin interfacejava.util.Map<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>- Overrides:
getin classjava.util.concurrent.ConcurrentHashMap<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>
-
-