Package com.google.common.cache
Class LocalCache.ComputingValueReference<K,V>
- java.lang.Object
-
- com.google.common.cache.LocalCache.LoadingValueReference<K,V>
-
- com.google.common.cache.LocalCache.ComputingValueReference<K,V>
-
- All Implemented Interfaces:
LocalCache.ValueReference<K,V>
- Enclosing class:
- LocalCache<K,V>
static class LocalCache.ComputingValueReference<K,V> extends LocalCache.LoadingValueReference<K,V>
-
-
Field Summary
-
Fields inherited from class com.google.common.cache.LocalCache.LoadingValueReference
futureValue, oldValue, stopwatch
-
-
Constructor Summary
Constructors Constructor Description ComputingValueReference(LocalCache.ValueReference<K,V> oldValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLoading()
Returns true if a new value is currently loading, regardless of whether or not there is an existing value.-
Methods inherited from class com.google.common.cache.LocalCache.LoadingValueReference
compute, copyFor, elapsedNanos, get, getEntry, getOldValue, getWeight, isActive, loadFuture, notifyNewValue, set, setException, waitForValue
-
-
-
-
Constructor Detail
-
ComputingValueReference
ComputingValueReference(LocalCache.ValueReference<K,V> oldValue)
-
-
Method Detail
-
isLoading
public boolean isLoading()
Description copied from interface:LocalCache.ValueReference
Returns true if a new value is currently loading, regardless of whether or not there is an existing value. It is assumed that the return value of this method is constant for any given ValueReference instance.- Specified by:
isLoading
in interfaceLocalCache.ValueReference<K,V>
- Overrides:
isLoading
in classLocalCache.LoadingValueReference<K,V>
-
-