@ThreadSafe
public final class HdrHistogramReservoir
extends java.lang.Object
implements com.codahale.metrics.Reservoir
| Constructor and Description |
|---|
HdrHistogramReservoir()
Create a reservoir with a default recorder.
|
HdrHistogramReservoir(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 HdrHistogramReservoir()
public HdrHistogramReservoir(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