Package helma.util

Class WeakCacheMap

java.lang.Object
helma.util.CacheMap
helma.util.WeakCacheMap
All Implemented Interfaces:
ObjectCache

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

    • WeakCacheMap

      public WeakCacheMap(int capacity)
    • WeakCacheMap

      public WeakCacheMap(int capacity, float loadFactor)
  • Method Details

    • createTable

      protected 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