public class StatisticSampler<T extends Serializable> extends Object
| Constructor and Description |
|---|
StatisticSampler(long time,
TimeUnit unit,
ValueStatistic<T> statistic,
Consumer<Sample<T>> sink,
LongSupplier timeSupplier) |
StatisticSampler(ScheduledExecutorService executor,
long time,
TimeUnit unit,
ValueStatistic<T> statistic,
Consumer<Sample<T>> sink,
LongSupplier timeSupplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
setPeriod(long time,
TimeUnit unit) |
void |
shutdown() |
void |
start() |
void |
stop() |
public StatisticSampler(long time,
TimeUnit unit,
ValueStatistic<T> statistic,
Consumer<Sample<T>> sink,
LongSupplier timeSupplier)
public StatisticSampler(ScheduledExecutorService executor, long time, TimeUnit unit, ValueStatistic<T> statistic, Consumer<Sample<T>> sink, LongSupplier timeSupplier)
public void setPeriod(long time,
TimeUnit unit)
public void start()
public void stop()
public void shutdown()
throws InterruptedException
InterruptedExceptionCopyright © 2018. All rights reserved.