public final class TimeRangeMeter extends AbstractMeter implements TimeSensor
Constructor and Description |
---|
TimeRangeMeter(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
add(long startTime)
Adds a time sample to the probe
|
double |
calculate()
Calculate the current value based on the previous sample().
|
AbstractMeter |
createActiveCount(java.lang.String name) |
AbstractMeter |
createCount(java.lang.String name) |
AbstractMeter |
createMax(java.lang.String name) |
void |
sample()
Return the probe's next sample.
|
double |
sampleCount()
Return the probe's next sample.
|
double |
sampleMax()
Return the probe's next sample.
|
long |
start() |
getName, peek, toString
public AbstractMeter createCount(java.lang.String name)
public AbstractMeter createActiveCount(java.lang.String name)
public AbstractMeter createMax(java.lang.String name)
public final long start()
public final void add(long startTime)
TimeSensor
add
in interface TimeSensor
public final void sample()
sample
in interface Meter
sample
in class AbstractMeter
public final double calculate()
AbstractMeter
calculate
in interface Meter
calculate
in class AbstractMeter
public final double sampleCount()
public final double sampleMax()