Package com.google.common.base
Class Suppliers.ExpiringMemoizingSupplier<T>
- java.lang.Object
-
- com.google.common.base.Suppliers.ExpiringMemoizingSupplier<T>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Supplier<T>delegate(package private) longdurationNanos(package private) longexpirationNanosprivate static longserialVersionUID(package private) Tvalue
-
Constructor Summary
Constructors Constructor Description ExpiringMemoizingSupplier(Supplier<T> delegate, long duration, java.util.concurrent.TimeUnit unit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget()Retrieves an instance of the appropriate type.java.lang.StringtoString()
-
-
-
Field Detail
-
durationNanos
final long durationNanos
-
value
transient volatile T value
-
expirationNanos
transient volatile long expirationNanos
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public T get()
Description copied from interface:SupplierRetrieves an instance of the appropriate type. The returned object may or may not be a new instance, depending on the implementation.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-