public abstract class AbstractDistributionSummary extends AbstractMeter implements DistributionSummary
DistributionSummary.Builder
Meter.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) |
getId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder, count, max, mean, measure, totalAmount
public AbstractDistributionSummary(Meter.Id id, Clock clock, HistogramConfig histogramConfig)
public final void record(double amount)
DistributionSummary
record
in interface DistributionSummary
amount
- 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)
DistributionSummary
percentile
in interface DistributionSummary
public double histogramCountAtValue(long value)
histogramCountAtValue
in interface DistributionSummary