public class NoopDistributionSummary extends NoopMeter implements DistributionSummary
DistributionSummary.Builder
Meter.Type
Modifier and Type | Field and Description |
---|---|
static NoopDistributionSummary |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
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.
|
double |
totalAmount()
The total amount of all recorded events since this summary was created.
|
getDescription, getName, getTags, measure
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
measure
getDescription, getName, getTags, getType
public static final NoopDistributionSummary INSTANCE
public void record(double amount)
DistributionSummary
record
in interface DistributionSummary
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.public long count()
DistributionSummary
count
in interface DistributionSummary
public double totalAmount()
DistributionSummary
totalAmount
in interface DistributionSummary