org.terracotta.statistics.archive
Class StatisticSampler<T extends Number>
java.lang.Object
org.terracotta.statistics.archive.StatisticSampler<T>
public class StatisticSampler<T extends Number>
- extends Object
- Author:
- cdennis
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatisticSampler
public StatisticSampler(long time,
TimeUnit unit,
ValueStatistic<T> statistic,
SampleSink<? super Timestamped<T>> sink)
StatisticSampler
public StatisticSampler(ScheduledExecutorService executor,
long time,
TimeUnit unit,
ValueStatistic<T> statistic,
SampleSink<? super Timestamped<T>> sink)
setPeriod
public void setPeriod(long time,
TimeUnit unit)
start
public void start()
stop
public void stop()
shutdown
public void shutdown()
throws InterruptedException
- Throws:
InterruptedException
Copyright © 2016. All Rights Reserved.