类 ConcurrentReferenceHashMap.ReferenceManager
java.lang.Object
cn.taketoday.util.ConcurrentReferenceHashMap.ReferenceManager
- 封闭类:
- ConcurrentReferenceHashMap<K,
V>
Strategy class used to manage
References.
This class can be overridden if alternative reference types need to be supported.-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明createReference(ConcurrentReferenceHashMap.Entry<K, V> entry, int hash, ConcurrentReferenceHashMap.Reference<K, V> next) Factory method used to create a newConcurrentReferenceHashMap.Reference.Return any reference that has been garbage collected and can be purged from the underlying structure ornullif no references need purging.
-
字段详细资料
-
queue
-
-
构造器详细资料
-
ReferenceManager
protected ReferenceManager()
-
-
方法详细资料
-
createReference
public ConcurrentReferenceHashMap.Reference<K,V> createReference(ConcurrentReferenceHashMap.Entry<K, V> entry, int hash, @Nullable ConcurrentReferenceHashMap.Reference<K, V> next) Factory method used to create a newConcurrentReferenceHashMap.Reference.- 参数:
entry- the entry contained in the referencehash- the hashnext- the next reference in the chain, ornullif none- 返回:
- a new
ConcurrentReferenceHashMap.Reference
-
pollForPurge
Return any reference that has been garbage collected and can be purged from the underlying structure ornullif no references need purging. This method must be thread safe and ideally should not block when returningnull. References should be returned once and only once.- 返回:
- a reference to purge or
null
-