@ThreadSafe public final class DeltaHdrHistogramReservoir extends Object implements com.codahale.metrics.Reservoir
| Constructor and Description |
|---|
DeltaHdrHistogramReservoir()
Create a reservoir with a default recorder.
|
DeltaHdrHistogramReservoir(org.HdrHistogram.Recorder recorder)
Create a reservoir with a user-specified recorder.
|
| Modifier and Type | Method and Description |
|---|---|
com.codahale.metrics.Snapshot |
getLastSnapshot() |
com.codahale.metrics.Snapshot |
getSnapshot() |
com.codahale.metrics.Snapshot |
getTotalSnapshot()
Get a histogram snapshot that spans the whole lifetime of this reservoir.
|
int |
size() |
void |
update(long value) |
public DeltaHdrHistogramReservoir()
public DeltaHdrHistogramReservoir(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.Reservoirpublic com.codahale.metrics.Snapshot getLastSnapshot()
getSnapshot()public com.codahale.metrics.Snapshot getTotalSnapshot()
Copyright © 2016. All rights reserved.