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