public abstract class AbstractDistributionSummary extends AbstractMeter implements DistributionSummary
DistributionSummary.BuilderMeter.Id, Meter.Type| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDistributionSummary(Meter.Id id,
Clock clock,
HistogramConfig histogramConfig) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
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) |
HistogramConfig |
statsConfig() |
HistogramSnapshot |
takeSnapshot(boolean supportsAggregablePercentiles) |
getIdclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilder, count, max, mean, measure, totalAmountprotected 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 DistributionSummarypublic HistogramSnapshot takeSnapshot(boolean supportsAggregablePercentiles)
takeSnapshot in interface DistributionSummarypublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic HistogramConfig statsConfig()