Class SelfCleaningValueTable<K,V>
java.lang.Object
com.gigaspaces.internal.utils.collections.SelfCleaningValueTable<K,V>
- Type Parameters:
K- key typeV- value type
- All Implemented Interfaces:
ConcurrentMap<K,,V> Map<K,V>
Holds a weak reference for each value and make sure each value will be cleaned when is weakly
held.
- Since:
- 7.0
- Author:
- Guy Korland
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()protected voidfinalize()booleanisEmpty()keySet()voidputIfAbsent(K key, V value) booleanbooleanintsize()values()Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
-
Constructor Details
-
SelfCleaningValueTable
public SelfCleaningValueTable()Creates a new Table and start a cleaner.
-
-
Method Details
-
clear
public void clear() -
put
-
get
-
finalize
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
entrySet
-
isEmpty
public boolean isEmpty() -
keySet
-
putAll
-
remove
-
size
public int size() -
values
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceConcurrentMap<K,V> - Specified by:
putIfAbsentin interfaceMap<K,V>
-
remove
-
replace
-
replace
-