public class CompositeDistributionSummary extends AbstractMeter implements DistributionSummary, CompositeMeter
DistributionSummary.BuilderMeter.Id, Meter.Type| Modifier and Type | Method and Description |
|---|---|
void |
add(MeterRegistry registry) |
long |
count()
The number of times that record has been called since this timer was created.
|
void |
record(double amount)
Updates the statistics kept by the summary with the specified amount.
|
void |
remove(MeterRegistry registry) |
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, measurepublic 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 void add(MeterRegistry registry)
add in interface CompositeMeterpublic void remove(MeterRegistry registry)
remove in interface CompositeMeter