Modifier and Type | Field and Description |
---|---|
(package private) Supplier<T> |
delegate |
(package private) long |
durationNanos |
(package private) long |
expirationNanos |
private static long |
serialVersionUID |
(package private) T |
value |
Constructor and Description |
---|
ExpiringMemoizingSupplier(Supplier<T> delegate,
long duration,
java.util.concurrent.TimeUnit unit) |
Modifier and Type | Method and Description |
---|---|
T |
get()
Retrieves an instance of the appropriate type.
|
java.lang.String |
toString() |
final long durationNanos
transient volatile T value
transient volatile long expirationNanos
private static final long serialVersionUID
public T get()
Supplier
get
in interface java.util.function.Supplier<T>
public java.lang.String toString()
toString
in class java.lang.Object