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>
-
Field Summary
Fields inherited from class com.google.common.cache.LocalCache.LoadingValueReference
futureValue, oldValue, stopwatch -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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 Details
-
ComputingValueReference
ComputingValueReference(LocalCache.ValueReference<K, V> oldValue)
-
-
Method Details
-
isLoading
public boolean isLoading()Description copied from interface:LocalCache.ValueReferenceReturns 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:
isLoadingin interfaceLocalCache.ValueReference<K,V> - Overrides:
isLoadingin classLocalCache.LoadingValueReference<K,V>
-