Package org.cristalise.kernel.utils
Class WeakCache<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.cristalise.kernel.utils.WeakCache<K,V>
- Type Parameters:
K- keyV- value
- All Implemented Interfaces:
Map<K,V>
Deprecated.
should be replaced by Cache from Guava
WeakReferences are reaped if no strong references are left next time the gc has a chance.
The ClusterStorageManager caches can optionally use this one, for high volume imports etc
-
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
-
WeakCache
public WeakCache()Deprecated. -
WeakCache
public WeakCache(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.
-