public class SpectatorDistributionSummary extends AbstractMeter implements DistributionSummary
DistributionSummary.Builder
Meter.Id, Meter.Type
Constructor and Description |
---|
SpectatorDistributionSummary(Meter.Id id,
com.netflix.spectator.api.DistributionSummary distributionSummary,
Quantiles quantiles,
Histogram<?> histogram) |
Modifier and Type | Method and Description |
---|---|
long |
count()
The number of times that record has been called since this timer was created.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
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.
|
getId
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder, measure
public void record(double amount)
DistributionSummary
record
in interface DistributionSummary
amount
- Amount for an event being measured. For this implementation,
amount is truncated to a long because the underlying Spectator
implementation takes a long.public long count()
DistributionSummary
count
in interface DistributionSummary
public double totalAmount()
DistributionSummary
totalAmount
in interface DistributionSummary
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object