public abstract class AbstractDistributionSummary extends AbstractMeter implements DistributionSummary
DistributionSummary.BuilderMeter.Id, Meter.Type| Constructor and Description |
|---|
AbstractDistributionSummary(Meter.Id id,
Clock clock,
HistogramConfig histogramConfig) |
| Modifier and Type | Method and Description |
|---|---|
double |
histogramCountAtValue(long value) |
double |
percentile(double percentile)
The value at a specific percentile.
|
void |
record(double amount)
Updates the statistics kept by the summary with the specified amount.
|
protected abstract void |
recordNonNegative(double amount) |
getIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilder, count, max, mean, measure, totalAmountpublic AbstractDistributionSummary(Meter.Id id, Clock clock, HistogramConfig histogramConfig)
public final void record(double amount)
DistributionSummaryrecord in interface DistributionSummaryamount - Amount for an event being measured. For example, if the size in bytes of responses
from a server. If the amount is less than 0 the value will be dropped.protected abstract void recordNonNegative(double amount)
public double percentile(double percentile)
DistributionSummarypercentile in interface DistributionSummarypublic double histogramCountAtValue(long value)
histogramCountAtValue in interface DistributionSummary