Package org.cristalise.kernel.utils
Class SoftCache<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.cristalise.kernel.utils.SoftCache<K,V>
- Type Parameters:
K- keyV- value
- All Implemented Interfaces:
Map<K,V>
Deprecated.
should be replaced by Cache from Guava
SoftReferences are reaped if no strong references are left and the
java VM is running out of memory. Most caches in the kernel use this.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractMap
clone, containsKey, containsValue, equals, hashCode, isEmpty, putAll, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
SoftCache
public SoftCache()Deprecated. -
SoftCache
public SoftCache(int minSize) Deprecated.
-
-
Method Details
-
get
Deprecated. -
put
Deprecated. -
remove
Deprecated. -
clear
public void clear()Deprecated. -
size
public int size()Deprecated. -
keySet
Deprecated. -
entrySet
Deprecated.
-