public class TestTimer
extends com.netflix.spectator.api.AbstractTimer
Constructor and Description |
---|
TestTimer(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,
java.util.concurrent.TimeUnit unit) |
long |
totalTime() |
public long count()
public void record(long amount, java.util.concurrent.TimeUnit unit)
public long totalTime()
public boolean hasExpired()
public com.netflix.spectator.api.Id id()
public java.lang.Iterable<com.netflix.spectator.api.Measurement> measure()
Copyright © 2021. All Rights Reserved.