Package de.hybris.platform.cache
Class BaseCacheYFastFIFOMapStub<K>
- java.lang.Object
-
- de.hybris.platform.util.collections.AbstractDelegatingMap<K,V>
-
- de.hybris.platform.util.collections.YFastMap<K,V>
-
- de.hybris.platform.util.collections.YFastFIFOMap<K,AbstractCacheUnit>
-
- de.hybris.platform.cache.BaseCacheYFastFIFOMapStub<K>
-
- All Implemented Interfaces:
CacheMap<K,AbstractCacheUnit>,YFIFOMap<K,AbstractCacheUnit>,YMap<K,AbstractCacheUnit>,java.io.Serializable,java.util.Map<K,AbstractCacheUnit>
public class BaseCacheYFastFIFOMapStub<K> extends YFastFIFOMap<K,AbstractCacheUnit>
- See Also:
- Serialized Form
-
-
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>
-
Nested classes/interfaces inherited from interface de.hybris.platform.util.collections.YMap
YMap.ClearHandler<K1,V1>
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.util.collections.AbstractDelegatingMap
delegateMap
-
-
Constructor Summary
Constructors Constructor Description BaseCacheYFastFIFOMapStub(de.hybris.platform.cache.CacheBaseStub cacheBase, int max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessDisplacedEntry(java.lang.Object key, AbstractCacheUnit 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 removed-
Methods inherited from class de.hybris.platform.util.collections.YFastFIFOMap
createMapInstance, getMaxReachedSize, maxSize, processRemoveEldest, synchronizeExternal
-
Methods inherited from class de.hybris.platform.util.collections.YFastMap
clear, clear, containsKey, getEntry, getEntry, put, putAll, remove
-
Methods inherited from class de.hybris.platform.util.collections.AbstractDelegatingMap
containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, size, toString, values
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
processDisplacedEntry
public void processDisplacedEntry(java.lang.Object key, AbstractCacheUnit value)Description copied from interface:CacheMapdo 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 removed- Specified by:
processDisplacedEntryin interfaceCacheMap<K,AbstractCacheUnit>- Overrides:
processDisplacedEntryin classYFastFIFOMap<K,AbstractCacheUnit>
-
-