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 int
CACHE_INIT_SIZE
private java.util.concurrent.ConcurrentHashMap<java.lang.Class<?>,BeanPropertiesCache.BPSoftReference>
map
private 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 void
cleanup()
protected void
clear(java.lang.ClassLoader classLoader)
BeanPropertiesCache.BeanProperties
get(java.lang.Object key)
BeanPropertiesCache.BeanProperties
put(java.lang.Class<?> key, BeanPropertiesCache.BeanProperties value)
BeanPropertiesCache.BeanProperties
putIfAbsent(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:
put
in interfacejava.util.Map<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>
- Overrides:
put
in classjava.util.concurrent.ConcurrentHashMap<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>
-
putIfAbsent
public BeanPropertiesCache.BeanProperties putIfAbsent(java.lang.Class<?> key, BeanPropertiesCache.BeanProperties value)
- Specified by:
putIfAbsent
in interfacejava.util.concurrent.ConcurrentMap<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>
- Specified by:
putIfAbsent
in interfacejava.util.Map<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>
- Overrides:
putIfAbsent
in classjava.util.concurrent.ConcurrentHashMap<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>
-
get
public BeanPropertiesCache.BeanProperties get(java.lang.Object key)
- Specified by:
get
in interfacejava.util.Map<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>
- Overrides:
get
in classjava.util.concurrent.ConcurrentHashMap<java.lang.Class<?>,BeanPropertiesCache.BeanProperties>
-
-