Class SoftCache.ValueCell<K,V>
- java.lang.Object
-
- java.lang.ref.Reference<T>
-
- java.lang.ref.SoftReference<V>
-
- org.glassfish.pfl.basic.concurrent.SoftCache.ValueCell<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description private static int
dropped
private K
key
private boolean
keyIsValid
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static <K,V>
SoftCache.ValueCell<K,V>create(K key, V value, java.lang.ref.ReferenceQueue<V> queue)
private void
drop()
private boolean
isValid()
private static <K,V>
Vstrip(SoftCache.ValueCell<K,V> val, boolean drop)
-
-
-
Field Detail
-
dropped
private static int dropped
-
keyIsValid
private boolean keyIsValid
-
key
private K key
-
-
Method Detail
-
create
private static <K,V> SoftCache.ValueCell<K,V> create(K key, V value, java.lang.ref.ReferenceQueue<V> queue)
-
strip
private static <K,V> V strip(SoftCache.ValueCell<K,V> val, boolean drop)
-
isValid
private boolean isValid()
-
drop
private void drop()
-
-