public class NoopDistributionSummary extends NoopMeter implements DistributionSummary
DistributionSummary.Builder
Meter.Id, Meter.Type
Constructor and Description |
---|
NoopDistributionSummary(Meter.Id id) |
Modifier and Type | Method and Description |
---|---|
long |
count() |
double |
max() |
void |
record(double amount)
Updates the statistics kept by the summary with the specified amount.
|
HistogramSnapshot |
takeSnapshot()
Summary statistics should be published off of a single snapshot instance so that, for example, there isn't
disagreement between the distribution's bucket counts because more events continue to stream in.
|
double |
totalAmount() |
getId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder, histogramCountAtValue, mean, measure, percentile
getId, takeSnapshot
public NoopDistributionSummary(Meter.Id id)
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()
count
in interface DistributionSummary
public double totalAmount()
totalAmount
in interface DistributionSummary
public double max()
max
in interface DistributionSummary
public HistogramSnapshot takeSnapshot()
HistogramSupport
takeSnapshot
in interface HistogramSupport