@ThreadSafe
public final class HdrHistogramResetOnSnapshotReservoir
extends java.lang.Object
implements com.codahale.metrics.Reservoir
| Constructor and Description |
|---|
HdrHistogramResetOnSnapshotReservoir()
Create a reservoir with a default recorder.
|
HdrHistogramResetOnSnapshotReservoir(org.HdrHistogram.Recorder recorder)
Create a reservoir with a user-specified recorder.
|
| Modifier and Type | Method and Description |
|---|---|
com.codahale.metrics.Snapshot |
getSnapshot() |
int |
size() |
void |
update(long value) |
public HdrHistogramResetOnSnapshotReservoir()
public HdrHistogramResetOnSnapshotReservoir(org.HdrHistogram.Recorder recorder)
recorder - Recorder to usepublic int size()
size in interface com.codahale.metrics.Reservoirpublic void update(long value)
update in interface com.codahale.metrics.Reservoirpublic com.codahale.metrics.Snapshot getSnapshot()
getSnapshot in interface com.codahale.metrics.Reservoir