how often calls to snapshot() should trigger a rolling of the collection bucket.
Adds a new datapoint to the histogram.
Adds a new datapoint to the histogram.
Clears all the data from the histogram.
Clears all the data from the histogram.
Returns an immutable snapshot of the state of the histogram right now.
Returns an immutable snapshot of the state of the histogram right now.
If the underlying histogram is latched or buffered, data might be slow to appear or might disappear after some time passes.
To reread the histogram, snapshot must be called again.
A MetricsHistogram that is latched such that a snapshot of the values are taken every
latchPeriod
and that value is returned for rest oflatchPeriod
. This gives pull based collectors a simple way to get consistent results.This is safe to use from multiple threads.