Package dev.restate.common.reflections
Interface ConcurrentReferenceHashMap.Reference<K,V>
- Type Parameters:
K- the key typeV- the value type
- Enclosing class:
ConcurrentReferenceHashMap<K,V>
protected static interface ConcurrentReferenceHashMap.Reference<K,V>
A reference to an
ConcurrentReferenceHashMap.Entry contained in the map. Implementations are usually wrappers
around specific Java reference implementations (for example, SoftReference).-
Method Summary
Modifier and TypeMethodDescription@Nullable ConcurrentReferenceHashMap.Entry<K, V> get()Return the referenced entry, ornullif the entry is no longer available.intgetHash()Return the hash for the reference.@Nullable ConcurrentReferenceHashMap.Reference<K, V> getNext()Return the next reference in the chain, ornullif none.voidrelease()Release this entry and ensure that it will be returned fromReferenceManager#pollForPurge().
-
Method Details
-
get
@Nullable ConcurrentReferenceHashMap.Entry<K,V> get()Return the referenced entry, ornullif the entry is no longer available. -
getHash
int getHash()Return the hash for the reference. -
getNext
@Nullable ConcurrentReferenceHashMap.Reference<K,V> getNext()Return the next reference in the chain, ornullif none. -
release
void release()Release this entry and ensure that it will be returned fromReferenceManager#pollForPurge().
-