Package org.apache.openjpa.lib.util
Interface SizedMap
- 
- All Superinterfaces:
 Map
- All Known Implementing Classes:
 ConcurrentHashMap,ConcurrentReferenceHashMap,LRUMap,ReferenceHashMap
public interface SizedMap extends Map
AMaptype that maintains a maximum size, automatically removing entries when the maximum is exceeded.- Author:
 - Abe White
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetMaxSize()The maximum number of entries, or Integer.MAX_VALUE for no limit.booleanisFull()Whether the map is full.voidoverflowRemoved(Object key, Object value)Overridable callback for when an overflow entry is automatically removed.voidsetMaxSize(int max)The maximum number of entries, or Integer.MAX_VALUE for no limit.- 
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 
 - 
 
 -