Class YFastFIFOMap<K,V>
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,V>
- All Implemented Interfaces:
CacheMap<K,,V> YFIFOMap<K,,V> YMap<K,,V> Serializable,Map<K,V>
- Direct Known Subclasses:
BaseCacheYFastFIFOMap,BaseCacheYFastFIFOMapStub
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MapintThe maximum size since initialization/creationintmaxSize()The maximum allowed size of the mapvoidprocessDisplacedEntry(K key, V 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 removedvoidprocessRemoveEldest(K key, V value) booleanMethods 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
-
YFastFIFOMap
public YFastFIFOMap(int maxEntries)
-
-
Method Details
-
createMapInstance
- Overrides:
createMapInstancein classYFastMap<K,V>
-
processRemoveEldest
- Specified by:
processRemoveEldestin interfaceYFIFOMap<K,V>
-
getMaxReachedSize
public int getMaxReachedSize()Description copied from interface:CacheMapThe maximum size since initialization/creation- Specified by:
getMaxReachedSizein interfaceCacheMap<K,V> - Overrides:
getMaxReachedSizein classYFastMap<K,V> - Returns:
- the maximum size since initialization
-
maxSize
public int maxSize()Description copied from interface:CacheMapThe maximum allowed size of the map -
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,V>
-
synchronizeExternal
public boolean synchronizeExternal()
-