public class SimpleDistributionSummary extends AbstractSimpleMeter implements DistributionSummary
DistributionSummary.BuilderMeter.Typeid| Constructor and Description |
|---|
SimpleDistributionSummary(MeterId id) |
| Modifier and Type | Method and Description |
|---|---|
long |
count()
The number of times that record has been called since this timer was created.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.util.List<Measurement> |
measure()
Get the set of measurements for this meter.
|
void |
record(double amount)
Updates the statistics kept by the summary with the specified amount.
|
double |
totalAmount()
The total amount of all recorded events since this summary was created.
|
getName, getTagsclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetTypepublic SimpleDistributionSummary(MeterId 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 java.util.List<Measurement> measure()
Meterpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object