Package helma.util
Class WeakCacheMap
java.lang.Object
helma.util.CacheMap
helma.util.WeakCacheMap
- All Implemented Interfaces:
ObjectCache
A CacheMap subclass that uses WeakHashMaps internally for its
rotating tables.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map
createTable
(int capacity, float loadFactor) Overridden to return a java.util.WeakHashMap instance.Methods inherited from class helma.util.CacheMap
clear, containsKey, containsKeys, containsValue, get, getCachedObjects, getStatistics, init, isEmpty, put, remove, setCapacity, shutdown, size, toString, updateProperties
-
Constructor Details
-
WeakCacheMap
public WeakCacheMap(int capacity) -
WeakCacheMap
public WeakCacheMap(int capacity, float loadFactor)
-
-
Method Details
-
createTable
Overridden to return a java.util.WeakHashMap instance.- Overrides:
createTable
in classCacheMap
- Parameters:
capacity
- the initial capacityloadFactor
- the load factor- Returns:
- a new Map used for internal caching
-