Class SoftConcurrentMap<K,V>
java.lang.Object
org.miaixz.bus.core.center.map.reference.ReferenceConcurrentMap<K,V>
org.miaixz.bus.core.center.map.reference.SoftConcurrentMap<K,V>
- Type Parameters:
K- 键类型V- 值类型
- All Implemented Interfaces:
Serializable,Iterable<Map.Entry<K,,V>> ConcurrentMap<K,,V> Map<K,V>
线程安全的SoftMap实现 键和值都为Soft引用,即,在GC报告内存不足时会被GC回收
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.miaixz.bus.core.center.map.reference.ReferenceConcurrentMap
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, isEmpty, iterator, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, setPurgeListener, size, valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ConcurrentMap
getOrDefaultMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SoftConcurrentMap
public SoftConcurrentMap()构造 -
SoftConcurrentMap
构造- Parameters:
raw-ConcurrentMap实现
-