public class NicerHistogram extends com.codahale.metrics.Histogram implements DeltaSnapshotter, HdrDeltaHistogramAttachment
| Constructor and Description |
|---|
NicerHistogram(String metricName,
DeltaHdrHistogramReservoir hdrHistogramReservoir) |
| Modifier and Type | Method and Description |
|---|---|
NicerHistogram |
attach()
Attach a metric.
|
DeltaSnapshotReader |
getDeltaReader() |
ConvenientSnapshot |
getDeltaSnapshot(long cacheTimeMillis) |
org.HdrHistogram.Histogram |
getNextHdrDeltaHistogram()
Create a new interval histogram from the current data, then reset the histogram reservoir.
|
ConvenientSnapshot |
getSnapshot()
Only return a new snapshot form current reservoir data if the cached one has expired.
|
void |
update(long value) |
public NicerHistogram(String metricName, DeltaHdrHistogramReservoir hdrHistogramReservoir)
public DeltaSnapshotReader getDeltaReader()
getDeltaReader in interface DeltaSnapshotterpublic ConvenientSnapshot getSnapshot()
getSnapshot in interface com.codahale.metrics.SamplinggetSnapshot in class com.codahale.metrics.Histogrampublic ConvenientSnapshot getDeltaSnapshot(long cacheTimeMillis)
getDeltaSnapshot in interface DeltaSnapshotterpublic NicerHistogram attach()
HdrDeltaHistogramAttachmentattach in interface HdrDeltaHistogramAttachmentpublic void update(long value)
update in class com.codahale.metrics.Histogrampublic org.HdrHistogram.Histogram getNextHdrDeltaHistogram()
HdrDeltaHistogramProvidergetNextHdrDeltaHistogram in interface HdrDeltaHistogramProviderCopyright © 2017. All rights reserved.