public class NoopDistributionSummary extends NoopMeter implements DistributionSummary
DistributionSummary.BuilderMeter.Id, Meter.Type| Constructor and Description |
|---|
NoopDistributionSummary(Meter.Id id) |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
double |
histogramCountAtValue(long value)
Provides cumulative histogram counts.
|
double |
max() |
double |
percentile(double percentile) |
void |
record(double amount)
Updates the statistics kept by the summary with the specified amount.
|
HistogramSnapshot |
takeSnapshot(boolean supportsAggregablePercentiles)
Summary statistics should be published off of a single snapshot instance so that, for example, there isn't
disagreement between the distribution's count and total because more events continue to stream in.
|
double |
totalAmount() |
getIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilder, mean, measurepublic NoopDistributionSummary(Meter.Id id)
public 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.public long count()
count in interface DistributionSummarypublic double totalAmount()
totalAmount in interface DistributionSummarypublic double max()
max in interface DistributionSummarypublic double percentile(double percentile)
percentile in interface DistributionSummarypercentile - A percentile in the domain [0, 1]. For example, 0.5 represents the 50th percentile of the
distribution.public double histogramCountAtValue(long value)
DistributionSummaryhistogramCountAtValue in interface DistributionSummaryvalue - The histogram bucket to retrieve a count for.public HistogramSnapshot takeSnapshot(boolean supportsAggregablePercentiles)
DistributionSummarytakeSnapshot in interface DistributionSummarysupportsAggregablePercentiles - Whether percentile histogram buckets should be included in the list of CountAtBucket.