public class NicerTimer extends com.codahale.metrics.Timer implements DeltaSnapshotter, HdrDeltaHistogramAttachment
| Constructor and Description |
|---|
NicerTimer(String metricName,
DeltaHdrHistogramReservoir deltaHdrHistogramReservoir) |
| Modifier and Type | Method and Description |
|---|---|
NicerTimer |
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() |
void |
update(long duration,
TimeUnit unit) |
public NicerTimer(String metricName, DeltaHdrHistogramReservoir deltaHdrHistogramReservoir)
public ConvenientSnapshot getSnapshot()
getSnapshot in interface com.codahale.metrics.SamplinggetSnapshot in class com.codahale.metrics.Timerpublic DeltaSnapshotReader getDeltaReader()
getDeltaReader in interface DeltaSnapshotterpublic ConvenientSnapshot getDeltaSnapshot(long cacheTimeMillis)
getDeltaSnapshot in interface DeltaSnapshotterpublic NicerTimer attach()
HdrDeltaHistogramAttachmentattach in interface HdrDeltaHistogramAttachmentpublic org.HdrHistogram.Histogram getNextHdrDeltaHistogram()
HdrDeltaHistogramProvidergetNextHdrDeltaHistogram in interface HdrDeltaHistogramProviderpublic void update(long duration,
TimeUnit unit)
update in class com.codahale.metrics.TimerCopyright © 2017. All rights reserved.