Class CacheMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
io.undertow.server.protocol.http.CacheMap<K,V>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>

public class CacheMap<K,V> extends LinkedHashMap<K,V>
Author:
Stuart Douglas
See Also:
  • Constructor Details

    • CacheMap

      public CacheMap(int capacity)
  • Method Details

    • removeEldestEntry

      protected boolean removeEldestEntry(Map.Entry<K,V> eldest)
      removeEldestEntry() should be overridden by the user, otherwise it will not remove the oldest object from the Map.
      Overrides:
      removeEldestEntry in class LinkedHashMap<K,V>