@NotThreadSafe
public class MemorySafeLRUMap<K,V>
extends org.apache.commons.collections4.map.LRUMap<K,V>
LRUMap
is that it handles memory issues via MemoryLimitCalculator.
Note: this class is not thread safe! see https://github.com/apache/shenyu/issues/3929
org.apache.commons.collections4.map.AbstractLinkedMap.EntrySetIterator<K,V>, org.apache.commons.collections4.map.AbstractLinkedMap.KeySetIterator<K>, org.apache.commons.collections4.map.AbstractLinkedMap.LinkEntry<K,V>, org.apache.commons.collections4.map.AbstractLinkedMap.LinkIterator<K,V>, org.apache.commons.collections4.map.AbstractLinkedMap.LinkMapIterator<K,V>, org.apache.commons.collections4.map.AbstractLinkedMap.ValuesIterator<V>org.apache.commons.collections4.map.AbstractHashedMap.EntrySet<K,V>, org.apache.commons.collections4.map.AbstractHashedMap.HashEntry<K,V>, org.apache.commons.collections4.map.AbstractHashedMap.HashIterator<K,V>, org.apache.commons.collections4.map.AbstractHashedMap.HashMapIterator<K,V>, org.apache.commons.collections4.map.AbstractHashedMap.KeySet<K>, org.apache.commons.collections4.map.AbstractHashedMap.Values<V>| Constructor and Description |
|---|
MemorySafeLRUMap(int maxFreeMemory,
int initialSize) |
MemorySafeLRUMap(int maxFreeMemory,
int initialSize,
float loadFactor) |
MemorySafeLRUMap(int maxFreeMemory,
int initialSize,
float loadFactor,
boolean scanUntilRemovable) |
MemorySafeLRUMap(int maxFreeMemory,
java.util.Map<? extends K,? extends V> map) |
MemorySafeLRUMap(int maxFreeMemory,
java.util.Map<? extends K,? extends V> map,
boolean scanUntilRemovable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFull() |
addMapping, clone, doReadObject, doWriteObject, get, get, isScanUntilRemovable, maxSize, moveToMRU, removeLRU, reuseMapping, updateEntryaddEntry, clear, containsValue, createEntry, createEntrySetIterator, createKeySetIterator, createValuesIterator, entryAfter, entryBefore, firstKey, getEntry, getEntry, init, lastKey, mapIterator, nextKey, previousKey, removeEntrycalculateNewCapacity, calculateThreshold, checkCapacity, containsKey, convertKey, destroyEntry, ensureCapacity, entryHashCode, entryKey, entryNext, entrySet, entryValue, equals, hash, hashCode, hashIndex, isEmpty, isEqualKey, isEqualValue, keySet, put, putAll, remove, removeMapping, reuseEntry, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitpublic MemorySafeLRUMap(int maxFreeMemory,
int initialSize)
public MemorySafeLRUMap(int maxFreeMemory,
int initialSize,
float loadFactor)
public MemorySafeLRUMap(int maxFreeMemory,
int initialSize,
float loadFactor,
boolean scanUntilRemovable)
public MemorySafeLRUMap(int maxFreeMemory,
java.util.Map<? extends K,? extends V> map)
Copyright © 2024 The Apache Software Foundation. All rights reserved.