Class RecomputingSupplier<T>

java.lang.Object
org.apache.cassandra.utils.RecomputingSupplier<T>

public class RecomputingSupplier<T> extends Object
Supplier that caches the last computed value until it is reset, forcing every caller of get(long, TimeUnit) to wait until this value is computed if it was not computed yet. Calling recompute() won't reset value for the already waiting consumers, but instead will schedule one recomputation as soon as current one is done.