public class CumulativeHistogramLongTaskTimer extends DefaultLongTaskTimer
LongTaskTimer.Builder, LongTaskTimer.Sample
Meter.Id, Meter.Type
Constructor and Description |
---|
CumulativeHistogramLongTaskTimer(Meter.Id id,
Clock clock,
java.util.concurrent.TimeUnit baseTimeUnit,
DistributionStatisticConfig distributionStatisticConfig) |
Modifier and Type | Method and Description |
---|---|
HistogramSnapshot |
takeSnapshot()
Summary statistics should be published off of a single snapshot instance so that, for example, there isn't
disagreement between the distribution's bucket counts because more events continue to stream in.
|
activeTasks, baseTimeUnit, duration, equals, forEachActive, hashCode, max, start
getId
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder, builder, duration, mean, measure, record, record, record, recordCallable, stop
takeSnapshot
public CumulativeHistogramLongTaskTimer(Meter.Id id, Clock clock, java.util.concurrent.TimeUnit baseTimeUnit, DistributionStatisticConfig distributionStatisticConfig)
public HistogramSnapshot takeSnapshot()
HistogramSupport
takeSnapshot
in interface HistogramSupport
takeSnapshot
in class DefaultLongTaskTimer