public class StatisticsHolder<T> extends Object
Constructor and Description |
---|
StatisticsHolder(int samplesCount,
T defaultValue) |
Modifier and Type | Method and Description |
---|---|
void |
addSample(long timeStamp,
T sample) |
T |
getLastSample() |
long |
getLastTimeStamp() |
T |
getSampleBefore(long timeBefore,
TimeUnit unit) |
static void |
main(String[] args) |
public StatisticsHolder(int samplesCount, T defaultValue)
public void addSample(long timeStamp, T sample)
public T getLastSample()
public long getLastTimeStamp()
public static void main(String[] args) throws InterruptedException
InterruptedException
Copyright © GigaSpaces.