protected class ConcurrentReferenceHashMap.ReferenceManager extends Object
ConcurrentReferenceHashMap.References. This class can be
overridden if alternative reference types need to be supported.| 限定符 | 构造器和说明 |
|---|---|
protected |
ConcurrentReferenceHashMap.ReferenceManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
ConcurrentReferenceHashMap.Reference<K,V> |
createReference(ConcurrentReferenceHashMap.Entry<K,V> entry,
int hash,
ConcurrentReferenceHashMap.Reference<K,V> next)
Factory method used to create a new
ConcurrentReferenceHashMap.Reference. |
ConcurrentReferenceHashMap.Reference<K,V> |
pollForPurge()
Return any reference that has been garbage collected and can be
purged from the underlying structure or
null if no references
need purging. |
protected ConcurrentReferenceHashMap.ReferenceManager()
public ConcurrentReferenceHashMap.Reference<K,V> createReference(ConcurrentReferenceHashMap.Entry<K,V> entry, int hash, ConcurrentReferenceHashMap.Reference<K,V> next)
ConcurrentReferenceHashMap.Reference.entry - the entry contained in the referencehash - the hashnext - the next reference in the chain or nullConcurrentReferenceHashMap.Referencepublic ConcurrentReferenceHashMap.Reference<K,V> pollForPurge()
null if no references
need purging. This method must be thread safe and ideally should not
block when returning null. References should be returned once
and only once.nullCopyright © 2013 The Skfiy Open Association. All Rights Reserved.