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()
The number of times that record has been called since this timer was created.
|
double |
histogramCountAtValue(long value) |
double |
max()
The maximum time of a single event.
|
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.
|
HistogramSnapshot |
takeSnapshot(boolean supportsAggregablePercentiles) |
double |
totalAmount()
The total amount of all recorded events since this summary was created.
|
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()
DistributionSummarycount in interface DistributionSummarypublic double totalAmount()
DistributionSummarytotalAmount in interface DistributionSummarypublic double max()
DistributionSummarymax in interface DistributionSummarypublic double percentile(double percentile)
DistributionSummarypercentile in interface DistributionSummarypublic double histogramCountAtValue(long value)
histogramCountAtValue in interface DistributionSummarypublic HistogramSnapshot takeSnapshot(boolean supportsAggregablePercentiles)
takeSnapshot in interface DistributionSummary