public class SampledStatisticAdapter<T extends Serializable> extends Object implements SampledStatistic<T>
| Modifier and Type | Method and Description |
|---|---|
List<Sample<T>> |
history()
The history of values
|
List<Sample<T>> |
history(long since)
The history of values, since a given time in ms
|
static <T extends Serializable> |
sample(ValueStatistic<T> accessor,
LongSupplier timeSource) |
StatisticType |
type() |
T |
value() |
public T value()
value in interface ValueStatistic<T extends Serializable>public List<Sample<T>> history()
SampledStatistichistory in interface SampledStatistic<T extends Serializable>public List<Sample<T>> history(long since)
SampledStatistichistory in interface SampledStatistic<T extends Serializable>since - starting point of history in mspublic StatisticType type()
type in interface ValueStatistic<T extends Serializable>public static <T extends Serializable> SampledStatistic<T> sample(ValueStatistic<T> accessor, LongSupplier timeSource)
Copyright © 2018. All rights reserved.