public interface SampledCounter extends Counter
Modifier and Type | Method and Description |
---|---|
TimeStampedCounterValue[] |
getAllSampleValues()
Returns all samples in history
|
long |
getAndReset()
Returns the current value of the counter and resets it to 0
|
TimeStampedCounterValue |
getMostRecentSample()
Returns the most recent sampled value
|
void |
shutdown()
Shutdown this counter
|
void shutdown()
TimeStampedCounterValue getMostRecentSample()
TimeStampedCounterValue[] getAllSampleValues()
long getAndReset()
Copyright 2001-2019, Terracotta, Inc.