public class TestDistributionSummary
extends java.lang.Object
implements com.netflix.spectator.api.DistributionSummary
Constructor and Description |
---|
TestDistributionSummary(com.netflix.spectator.api.Id id) |
Modifier and Type | Method and Description |
---|---|
long |
count() |
boolean |
hasExpired() |
com.netflix.spectator.api.Id |
id() |
java.lang.Iterable<com.netflix.spectator.api.Measurement> |
measure() |
void |
record(long amount) |
long |
totalAmount() |
public TestDistributionSummary(com.netflix.spectator.api.Id id)
public boolean hasExpired()
hasExpired
in interface com.netflix.spectator.api.Meter
public com.netflix.spectator.api.Id id()
id
in interface com.netflix.spectator.api.Meter
public java.lang.Iterable<com.netflix.spectator.api.Measurement> measure()
measure
in interface com.netflix.spectator.api.Meter
public long count()
count
in interface com.netflix.spectator.api.DistributionSummary
public void record(long amount)
record
in interface com.netflix.spectator.api.DistributionSummary
public long totalAmount()
totalAmount
in interface com.netflix.spectator.api.DistributionSummary
Copyright © 2021. All Rights Reserved.