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 voidclear()intgetMaxReachedSize()The maximum size since initialization/creationintmaxSize()The maximum allowed size of the mapvoidprocessDisplacedEntry(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 removedintsize()the current size of the cache map
-