public abstract class AbstractBaseCacheMap<K> extends AbstractCacheMap<K,AbstractCacheUnit>
AbstractCacheMap calling cache to remove unit from internal cache on displaced entry.delegateMap| Constructor and Description |
|---|
AbstractBaseCacheMap(de.hybris.platform.cache.impl.CacheBase cacheBase,
int max) |
| Modifier and Type | Method and 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
|
clear, getMaxReachedSize, maxSizecontainsKey, containsValue, createMapInstance, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, valuespublic AbstractBaseCacheMap(de.hybris.platform.cache.impl.CacheBase cacheBase,
int max)
public void processDisplacedEntry(K key, AbstractCacheUnit unit)
CacheMapprocessDisplacedEntry in interface CacheMap<K,AbstractCacheUnit>processDisplacedEntry in class AbstractCacheMap<K,AbstractCacheUnit>Copyright © 2018 SAP SE. All Rights Reserved.