Package com.twelvemonkeys.util
Interface ExpiringMap<K,V>
- All Superinterfaces:
Map<K,
V>
- All Known Implementing Classes:
LRUHashMap
,LRUMap
,TimeoutMap
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 $
- Author:
- Harald Kuhr
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processRemoved
(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 Details
-
processRemoved
May be used by clients as a call-back to notify when mappings expire from the map.- Parameters:
pRemoved
- the removed mapping
-