Variant of #withInitialValue() that will compute the first value to be held by the prefetcher by invoking the supplier.
Variant of #withInitialValue() that will compute the first value to be held by the prefetcher by invoking the supplier.
'zero' is passed to the supplier the first time it is run, but is never held by the returned prefetcher,
Once the prefetcher is instantiated, it will contain a pre-fetched value.
Builds a prefetcher that refreshes its stored value using the passed supplier at every updateInterval.
Builds a prefetcher that refreshes its stored value using the passed supplier at every updateInterval. The passed 'initialValue' is available immediately, while the supplier will begin execution immediately.
The supplier will have the currently held value at its disposal should it be required to determine how to compute the next value to be pre-fetched.
Note that the passed supplier may be a Task[T] if it ignores the previously held value to compute the next one.
the type that will be held by this prefetching supplier
the value that will be available immediately
the effect that computes the new, updated, value. Invoked multiple times.
the periods at which the supplier is invoked
time to wait before launching the regular updated job
(Since version ) see corresponding Javadoc for more information.