public interface DistributionSummary extends Meter
count()
and totalAmount()
,
but some implementations may not. In particular, the implementation from NoopRegistry
will always return 0.Modifier and Type | Method and Description |
---|---|
long |
count()
The number of times that record has been called since this timer was created.
|
void |
record(long amount)
Updates the statistics kept by the summary with the specified amount.
|
long |
totalAmount()
The total amount of all recorded events since this summary was created.
|
hasExpired, id, measure
void record(long amount)
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.long count()
long totalAmount()