public class StatisticSampler<T extends Serializable> extends Object
| Constructor and Description |
|---|
StatisticSampler(long time,
TimeUnit unit,
ValueStatistic<T> statistic,
SampleSink<Sample<T>> sink) |
StatisticSampler(ScheduledExecutorService executor,
long time,
TimeUnit unit,
ValueStatistic<T> statistic,
SampleSink<Sample<T>> sink) |
| 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,
SampleSink<Sample<T>> sink)
public StatisticSampler(ScheduledExecutorService executor, long time, TimeUnit unit, ValueStatistic<T> statistic, SampleSink<Sample<T>> sink)
public void setPeriod(long time,
TimeUnit unit)
public void start()
public void stop()
public void shutdown()
throws InterruptedException
InterruptedExceptionCopyright © 2018. All rights reserved.