Interface ExpiringMap<K,​V>

  • All Superinterfaces:
    java.util.Map<K,​V>
    All Known Implementing Classes:
    LRUHashMap, LRUMap, TimeoutMap

    public interface ExpiringMap<K,​V>
    extends java.util.Map<K,​V>
    Call-back inteface for Map implementations that have mappings that may expire.
    Version:
    $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/util/ExpiringMap.java#1 $
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void processRemoved​(java.util.Map.Entry<K,​V> pRemoved)
      May be used by clients as a call-back to notify when mappings expire from the map.
      • Methods inherited from interface java.util.Map

        clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
    • Method Detail

      • processRemoved

        void processRemoved​(java.util.Map.Entry<K,​V> pRemoved)
        May be used by clients as a call-back to notify when mappings expire from the map.
        Parameters:
        pRemoved - the removed mapping