public class TestCounter
extends java.lang.Object
implements com.netflix.spectator.api.Counter
Constructor and Description |
---|
TestCounter(TestRegistry testRegistry,
com.netflix.spectator.api.Id arg0) |
Modifier and Type | Method and Description |
---|---|
double |
actualCount() |
void |
add(double amount) |
long |
count() |
boolean |
hasExpired() |
com.netflix.spectator.api.Id |
id() |
void |
increment() |
void |
increment(long arg0) |
java.lang.Iterable<com.netflix.spectator.api.Measurement> |
measure() |
public TestCounter(TestRegistry testRegistry, com.netflix.spectator.api.Id arg0)
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.Counter
public void increment()
increment
in interface com.netflix.spectator.api.Counter
public void increment(long arg0)
increment
in interface com.netflix.spectator.api.Counter
public void add(double amount)
add
in interface com.netflix.spectator.api.Counter
public double actualCount()
actualCount
in interface com.netflix.spectator.api.Counter
Copyright © 2021. All Rights Reserved.