public interface DistributionSummary extends Meter
Modifier and Type | Interface and Description |
---|---|
static interface |
DistributionSummary.Builder |
Meter.Type
Modifier and Type | Method and Description |
---|---|
long |
count()
The number of times that record has been called since this timer was created.
|
default Meter.Type |
getType() |
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.
|
void record(double 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()
double totalAmount()
default Meter.Type getType()