static final class LocalCache.WeightedSoftValueReference<K,V> extends LocalCache.SoftValueReference<K,V>
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
weight |
entry| Constructor and Description |
|---|
WeightedSoftValueReference(java.lang.ref.ReferenceQueue<V> queue,
V referent,
ReferenceEntry<K,V> entry,
int weight) |
| Modifier and Type | Method and Description |
|---|---|
LocalCache.ValueReference<K,V> |
copyFor(java.lang.ref.ReferenceQueue<V> queue,
V value,
ReferenceEntry<K,V> entry)
Creates a copy of this reference for the given entry.
|
int |
getWeight()
Returns the weight of this entry.
|
getEntry, isActive, isLoading, notifyNewValue, waitForValueequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWeightedSoftValueReference(java.lang.ref.ReferenceQueue<V> queue, V referent, ReferenceEntry<K,V> entry, int weight)
public int getWeight()
LocalCache.ValueReferencegetWeight in interface LocalCache.ValueReference<K,V>getWeight in class LocalCache.SoftValueReference<K,V>public LocalCache.ValueReference<K,V> copyFor(java.lang.ref.ReferenceQueue<V> queue, V value, ReferenceEntry<K,V> entry)
LocalCache.ValueReferencevalue may be null only for a loading reference.
copyFor in interface LocalCache.ValueReference<K,V>copyFor in class LocalCache.SoftValueReference<K,V>