diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2012-12-18 17:02:17 +0100 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2012-12-18 17:02:17 +0100 |
| commit | 31746638f0a7d99093f9348e14436c3b7aea28db (patch) | |
| tree | 40f3f215f72974287e0a057d6fe4547a9d81963c /src/main/java/com/c2kernel/utils/SoftCache.java | |
| parent | 82a3a75cf8045a638e0dcd90dcff39a67609bc68 (diff) | |
Added optional WeakCache to hold fewer ClusterStorage objects in memory.
Enabled with Storage.useWeakCache property. Useful for large imports and
other operations that involve accessing a large number of items over a
short period.
Diffstat (limited to 'src/main/java/com/c2kernel/utils/SoftCache.java')
| -rw-r--r-- | src/main/java/com/c2kernel/utils/SoftCache.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/c2kernel/utils/SoftCache.java b/src/main/java/com/c2kernel/utils/SoftCache.java index 2fd79f1..da58c87 100644 --- a/src/main/java/com/c2kernel/utils/SoftCache.java +++ b/src/main/java/com/c2kernel/utils/SoftCache.java @@ -14,7 +14,7 @@ import java.util.Set; *
* $Revision: 1.5 $ $Date: 2004/10/29 13:29:09 $
******************************************************************************/
-public class SoftCache<K, V> extends AbstractMap<K, V> {
+public class SoftCache<K, V> extends AbstractMap<K, V> implements NonStrongRefCache<K, V> {
private final Map<K, SoftValue<V>> hash = new HashMap<K, SoftValue<V>>();
private final int minSize;
|
