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>
,java.io.Serializable
,java.util.Map<K,AbstractCacheUnit>
public abstract class AbstractBaseCacheMap<K> extends AbstractCacheMap<K,AbstractCacheUnit>
Implementation ofAbstractCacheMap
calling cache to remove unit from internal cache on displaced entry.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.util.collections.AbstractDelegatingMap
delegateMap
-
-
Constructor Summary
Constructors Constructor Description AbstractBaseCacheMap(de.hybris.platform.cache.impl.CacheBase cacheBase, int max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processDisplacedEntry(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 removed-
Methods inherited from class de.hybris.platform.util.collections.AbstractCacheMap
clear, getMaxReachedSize, maxSize
-
Methods inherited from class de.hybris.platform.util.collections.AbstractDelegatingMap
containsKey, containsValue, createMapInstance, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
-
-
-
-
Method Detail
-
processDisplacedEntry
public void processDisplacedEntry(K key, AbstractCacheUnit unit)
Description copied from interface:CacheMap
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- Specified by:
processDisplacedEntry
in interfaceCacheMap<K,AbstractCacheUnit>
- Overrides:
processDisplacedEntry
in classAbstractCacheMap<K,AbstractCacheUnit>
-
-