Package org.jboss.logmanager
Class ConcurrentReferenceHashMap.SoftKeyReference<K>
java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.SoftReference<K>
org.jboss.logmanager.ConcurrentReferenceHashMap.SoftKeyReference<K>
- All Implemented Interfaces:
ConcurrentReferenceHashMap.KeyReference
- Enclosing class:
- ConcurrentReferenceHashMap<K,
V>
static final class ConcurrentReferenceHashMap.SoftKeyReference<K>
extends SoftReference<K>
implements ConcurrentReferenceHashMap.KeyReference
A soft-key reference which stores the key hash needed for reclamation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.ref.SoftReference
get
Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, isEnqueued, reachabilityFence, refersTo
-
Field Details
-
hash
final int hash
-
-
Constructor Details
-
SoftKeyReference
SoftKeyReference(K key, int hash, ReferenceQueue<Object> refQueue)
-
-
Method Details
-
keyHash
public final int keyHash()- Specified by:
keyHash
in interfaceConcurrentReferenceHashMap.KeyReference
-
keyRef
- Specified by:
keyRef
in interfaceConcurrentReferenceHashMap.KeyReference
-