public class HistogramImpl extends Object implements org.eclipse.microprofile.metrics.Histogram
| Constructor and Description |
|---|
HistogramImpl(Reservoir reservoir)
Creates a new
HistogramImpl with the given reservoir. |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount()
Returns the number of values recorded.
|
org.eclipse.microprofile.metrics.Snapshot |
getSnapshot() |
void |
update(int value)
Adds a recorded value.
|
void |
update(long value)
Adds a recorded value.
|
public HistogramImpl(Reservoir reservoir)
HistogramImpl with the given reservoir.reservoir - the reservoir to create a histogram frompublic void update(int value)
update in interface org.eclipse.microprofile.metrics.Histogramvalue - the length of the valuepublic void update(long value)
update in interface org.eclipse.microprofile.metrics.Histogramvalue - the length of the valuepublic long getCount()
getCount in interface org.eclipse.microprofile.metrics.CountinggetCount in interface org.eclipse.microprofile.metrics.Histogrampublic org.eclipse.microprofile.metrics.Snapshot getSnapshot()
getSnapshot in interface org.eclipse.microprofile.metrics.HistogramgetSnapshot in interface org.eclipse.microprofile.metrics.SamplingCopyright © 2017 JBoss by Red Hat. All rights reserved.