public class SpectatorDistributionSummary extends java.lang.Object implements DistributionSummary
DistributionSummary.BuilderMeter.Type| Constructor and Description |
|---|
SpectatorDistributionSummary(com.netflix.spectator.api.DistributionSummary distributionSummary,
java.lang.String description) |
| 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) |
java.lang.String |
getDescription() |
java.lang.String |
getName() |
java.lang.Iterable<Tag> |
getTags() |
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.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitmeasurepublic SpectatorDistributionSummary(com.netflix.spectator.api.DistributionSummary distributionSummary,
java.lang.String description)
public void record(double amount)
DistributionSummaryrecord in interface DistributionSummaryamount - 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()
DistributionSummarycount in interface DistributionSummarypublic double totalAmount()
DistributionSummarytotalAmount in interface DistributionSummarypublic java.lang.String getDescription()
getDescription in interface Meterpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object