Interface CacheMap<K,V>
-
- All Superinterfaces:
java.util.Map<K,V>
- All Known Subinterfaces:
YFIFOMap<K,V>
- All Known Implementing Classes:
AbstractBaseCacheMap
,AbstractCacheMap
,BaseCacheYFastFIFOMap
,BaseCacheYFastFIFOMapStub
,YFastFIFOMap
public interface CacheMap<K,V> extends java.util.Map<K,V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
int
getMaxReachedSize()
The maximum size since initialization/creationint
maxSize()
The maximum allowed size of the mapvoid
processDisplacedEntry(K key, V value)
do something before a entry is displaced because the map is growing to big (if an entry is added and size() is getting bigger as maxSize()), this method will be called before an old entry is being removedint
size()
the current size of the cache map
-