T
- the type of results supplied by this supplierpublic class Recyclable<T>
extends java.lang.Object
implements java.util.function.Supplier<T>
maxCycles
.
After approximately maxCycles
calls to its get()
operation,
Recyclable
fetches a new result from its underlying Supplier.
Constructor and Description |
---|
Recyclable(java.util.function.Supplier<T> supplier,
long maxCycles) |
Modifier and Type | Method and Description |
---|---|
T |
get() |