Class LruMap<T,U>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<T,U>
com.linecorp.armeria.common.util.LruMap<T,U>
Type Parameters:
T - the key type
U - the value type
All Implemented Interfaces:
Serializable, Cloneable, Map<T,U>

public class LruMap<T,U> extends LinkedHashMap<T,U>
LRU (Least Recently Used) cache Map.
See Also:
  • Constructor Details

    • LruMap

      public LruMap(int maxEntries)
      Creates a new instance with the specified maximum number of allowed entries.
  • Method Details