public class SingleCache<T>
extends java.lang.Object
implements java.util.function.Supplier<T>
Constructor and Description |
---|
SingleCache(java.util.function.Supplier<T> delegate,
long duration,
java.util.concurrent.TimeUnit timeUnit) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
T |
get() |