public abstract class AbstractDistributionSummary extends AbstractMeter implements DistributionSummary
DistributionSummary.BuilderMeter.Id, Meter.Type| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDistributionSummary(Meter.Id id,
Clock clock,
DistributionStatisticConfig distributionStatisticConfig,
double scale,
boolean supportsAggregablePercentiles) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
void |
record(double amount)
Updates the statistics kept by the summary with the specified amount.
|
protected abstract void |
recordNonNegative(double amount) |
HistogramSnapshot |
takeSnapshot()
Summary statistics should be published off of a single snapshot instance so that, for example, there isn't
disagreement between the distribution's bucket counts because more events continue to stream in.
|
getIdclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilder, count, histogramCountAtValue, max, mean, measure, percentile, totalAmounttakeSnapshotprotected final Histogram histogram
protected AbstractDistributionSummary(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, double scale, boolean supportsAggregablePercentiles)
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 HistogramSnapshot takeSnapshot()
HistogramSupporttakeSnapshot in interface HistogramSupportpublic boolean equals(@Nullable java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object