Class LruMap<A,B>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<A,B>
org.apache.storm.utils.LruMap<A,B>
All Implemented Interfaces:
Serializable, Cloneable, Map<A,B>

public class LruMap<A,B> extends LinkedHashMap<A,B>
See Also:
  • Constructor Details

    • LruMap

      public LruMap(int maxSize)
    • LruMap

      public LruMap(int maxSize, LruMap.CacheEvictionCallback evictionCallback)
      Creates an LRU map that will call back before data is removed from the map.
      Parameters:
      maxSize - max capacity for the map
      evictionCallback - callback to be called before removing data
  • Method Details