K
- V
- public class GCConcurrentHashMap<K,V>
extends java.util.concurrent.ConcurrentHashMap<K,V>
Modifier and Type | Class and Description |
---|---|
static class |
GCConcurrentHashMap.GCConcurrentHashMapTest |
java.util.concurrent.ConcurrentHashMap.KeySetView<K,V>
Constructor and Description |
---|
GCConcurrentHashMap(GCConcurrentHashMapCallback callback,
long gcTimeout) |
GCConcurrentHashMap(long gcTimeout) |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
V |
put(K key,
V value) |
void |
putAll(java.util.Map<? extends K,? extends V> map) |
V |
putIfAbsent(K key,
V value) |
V |
remove(java.lang.Object key) |
boolean |
remove(java.lang.Object key,
java.lang.Object value) |
GCConcurrentHashMap<K,V> |
setGCThresholdSize(int size) |
GCConcurrentHashMap<K,V> |
setGCTimeout(long timeout) |
void |
tryGC(long timeout) |
clear, 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, 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, values
public GCConcurrentHashMap(GCConcurrentHashMapCallback callback, long gcTimeout)
callback
- gcTimeout
- public GCConcurrentHashMap(long gcTimeout)
gcTimeout
- public V remove(java.lang.Object key)
public GCConcurrentHashMap<K,V> setGCThresholdSize(int size)
size
- this
public GCConcurrentHashMap<K,V> setGCTimeout(long timeout)
timeout
- this
public boolean remove(java.lang.Object key, java.lang.Object value)
public void tryGC(long timeout)
timeout
- public static void main(java.lang.String[] args)
args
-