Package de.hybris.platform.cache.impl
Class BaseCacheYFastFIFOMap<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.impl.BaseCacheYFastFIFOMap<K>
- All Implemented Interfaces:
CacheMap<K,,AbstractCacheUnit> YFIFOMap<K,,AbstractCacheUnit> YMap<K,,AbstractCacheUnit> Serializable,Map<K,AbstractCacheUnit>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K extends Object,V extends 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
ConstructorsConstructorDescriptionBaseCacheYFastFIFOMap(de.hybris.platform.cache.impl.CacheBase cacheBase, int max) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessDisplacedEntry(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 removedMethods inherited from class de.hybris.platform.util.collections.YFastFIFOMap
createMapInstance, getMaxReachedSize, maxSize, processRemoveEldest, synchronizeExternalMethods inherited from class de.hybris.platform.util.collections.YFastMap
clear, clear, containsKey, getEntry, getEntry, put, putAll, removeMethods inherited from class de.hybris.platform.util.collections.AbstractDelegatingMap
containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, size, toString, valuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, values
-
Constructor Details
-
BaseCacheYFastFIFOMap
public BaseCacheYFastFIFOMap(de.hybris.platform.cache.impl.CacheBase cacheBase, int max)
-
-
Method Details
-
processDisplacedEntry
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>
-