public class YFastFIFOMap<K,V> extends YFastMap<K,V> implements YFIFOMap<K,V>
YMap.ClearHandler<K1,V1>delegateMap| Constructor and Description |
|---|
YFastFIFOMap(int maxEntries) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map |
createMapInstance() |
int |
getMaxReachedSize()
The maximum size since initialization/creation
|
int |
maxSize()
The maximum allowed size of the map
|
void |
processDisplacedEntry(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 removed
|
void |
processRemoveEldest(K key,
V value) |
boolean |
synchronizeExternal() |
clear, clear, containsKey, getEntry, getEntry, put, putAll, removecontainsValue, entrySet, equals, get, hashCode, isEmpty, keySet, size, toString, valuesprotected java.util.Map createMapInstance()
createMapInstance in class YFastMap<K,V>public void processRemoveEldest(K key, V value)
processRemoveEldest in interface YFIFOMap<K,V>public int getMaxReachedSize()
CacheMapgetMaxReachedSize in interface CacheMap<K,V>getMaxReachedSize in class YFastMap<K,V>public int maxSize()
CacheMappublic void processDisplacedEntry(K key, V value)
CacheMapprocessDisplacedEntry in interface CacheMap<K,V>public boolean synchronizeExternal()
Copyright © 2018 SAP SE. All Rights Reserved.