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) long
durationNanos
(package private) long
expirationNanos
private static long
serialVersionUID
(package private) T
value
-
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 T
get()
Retrieves an instance of the appropriate type.java.lang.String
toString()
-
-
-
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:Supplier
Retrieves 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:
toString
in classjava.lang.Object
-
-