Package helma.util

Class WeakCacheMap

  • All Implemented Interfaces:
    ObjectCache

    public class WeakCacheMap
    extends CacheMap
    A CacheMap subclass that uses WeakHashMaps internally for its rotating tables.
    • Constructor Detail

      • WeakCacheMap

        public WeakCacheMap​(int capacity)
      • WeakCacheMap

        public WeakCacheMap​(int capacity,
                            float loadFactor)
    • Method Detail

      • createTable

        protected java.util.Map createTable​(int capacity,
                                            float loadFactor)
        Overridden to return a java.util.WeakHashMap instance.
        Overrides:
        createTable in class CacheMap
        Parameters:
        capacity - the initial capacity
        loadFactor - the load factor
        Returns:
        a new Map used for internal caching