K - Type of key.V - Type of value.public class TimedHashMap<K,V>
extends java.util.concurrent.ConcurrentHashMap<K,V>
java.util.concurrent.ConcurrentHashMap.KeySetView<K,V>| Constructor and Description |
|---|
TimedHashMap(long ttlInMillis)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
V |
put(K key,
V value) |
void |
putAll(java.util.Map<? extends K,? extends V> m) |
V |
putIfAbsent(K key,
V value) |
V |
remove(java.lang.Object key) |
boolean |
remove(java.lang.Object key,
java.lang.Object value) |
compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, isEmpty, keys, keySet, keySet, mappingCount, merge, 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, valuespublic TimedHashMap(long ttlInMillis)
ttlInMillis - Time to live in millis for map entries.public boolean equals(java.lang.Object o)
public int hashCode()
public V remove(java.lang.Object key)
public void clear()
Copyright © 2018–2019 Oracle Corporation. All rights reserved.