Package de.hybris.platform.cache.impl
Class AbstractBaseCacheMap<K>
java.lang.Object
de.hybris.platform.util.collections.AbstractDelegatingMap<K,V>
de.hybris.platform.util.collections.AbstractCacheMap<K,AbstractCacheUnit>
de.hybris.platform.cache.impl.AbstractBaseCacheMap<K>
- All Implemented Interfaces:
CacheMap<K,,AbstractCacheUnit> Serializable,Map<K,AbstractCacheUnit>
Implementation of
AbstractCacheMap calling cache to remove unit from internal cache on displaced entry.- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class de.hybris.platform.util.collections.AbstractDelegatingMap
delegateMap -
Constructor Summary
ConstructorsConstructorDescriptionAbstractBaseCacheMap(de.hybris.platform.cache.impl.CacheBase cacheBase, int max) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessDisplacedEntry(K key, AbstractCacheUnit unit) 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.AbstractCacheMap
clear, getMaxReachedSize, maxSizeMethods inherited from class de.hybris.platform.util.collections.AbstractDelegatingMap
containsKey, containsValue, createMapInstance, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, 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
-
AbstractBaseCacheMap
public AbstractBaseCacheMap(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 classAbstractCacheMap<K,AbstractCacheUnit>
-