Class SoftCache.ValueCell<K,V>
java.lang.Object
java.lang.ref.Reference<V>
java.lang.ref.SoftReference<V>
org.glassfish.pfl.basic.concurrent.SoftCache.ValueCell<K,V>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <K,
V> SoftCache.ValueCell <K, V> create
(K key, V value, ReferenceQueue<V> queue) private void
drop()
private boolean
isValid()
private static <K,
V> V strip
(SoftCache.ValueCell<K, V> val, boolean drop) 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
-
dropped
private static int dropped -
keyIsValid
private boolean keyIsValid -
key
-
-
Constructor Details
-
ValueCell
-
-
Method Details
-
create
-
strip
-
isValid
private boolean isValid() -
drop
private void drop()
-