public abstract class AbstractCacheMap<K,V> extends AbstractDelegatingMap<K,V> implements CacheMap<K,V>
CacheMap doing nothing.delegateMap| Constructor and Description |
|---|
AbstractCacheMap(int max) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
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
|
containsKey, containsValue, createMapInstance, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, valuespublic void clear()
public int maxSize()
CacheMappublic int getMaxReachedSize()
CacheMapgetMaxReachedSize in interface CacheMap<K,V>public void processDisplacedEntry(K key, V value)
CacheMapprocessDisplacedEntry in interface CacheMap<K,V>Copyright © 2018 SAP SE. All Rights Reserved.