public class ConcurrentLRUCache<K,V> extends ConcurrentHashMap<K,V>
ConcurrentHashMap.KeySetView<K,V>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ConcurrentLRUCache(int maxSize) |
ConcurrentLRUCache(int initialCapacity,
float loadFactor,
int maxSize) |
ConcurrentLRUCache(int initialCapacity,
float loadFactor,
int concurrencyLevel,
int maxSize) |
ConcurrentLRUCache(int initialCapacity,
int maxSize) |
ConcurrentLRUCache(Map<? extends K,? extends V> m,
int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
V |
merge(K key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
putIfAbsent(K key,
V value) |
int |
queueSize() |
V |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
void |
setMaxSize(int maxSize) |
compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, newKeySet, newKeySet, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, valuesclonepublic ConcurrentLRUCache(int maxSize)
public ConcurrentLRUCache(int initialCapacity,
int maxSize)
public ConcurrentLRUCache(int initialCapacity,
float loadFactor,
int maxSize)
public ConcurrentLRUCache(int initialCapacity,
float loadFactor,
int concurrencyLevel,
int maxSize)
public void setMaxSize(int maxSize)
public void clear()
public V putIfAbsent(K key, V value)
putIfAbsent in interface ConcurrentMap<K,V>putIfAbsent in interface Map<K,V>putIfAbsent in class ConcurrentHashMap<K,V>public int queueSize()
Copyright © 2020. All rights reserved.