public class TimeWindowMax
extends java.lang.Object
| Constructor and Description |
|---|
TimeWindowMax(Clock clock,
DistributionStatisticConfig config) |
TimeWindowMax(Clock clock,
long rotateFrequencyMillis,
int bufferLength) |
| Modifier and Type | Method and Description |
|---|---|
double |
poll() |
double |
poll(java.util.concurrent.TimeUnit timeUnit) |
void |
record(double sample)
For use by distribution summary implementations.
|
void |
record(double sample,
java.util.concurrent.TimeUnit timeUnit)
For use by timer implementations.
|
public TimeWindowMax(Clock clock, DistributionStatisticConfig config)
public TimeWindowMax(Clock clock, long rotateFrequencyMillis, int bufferLength)
public void record(double sample,
java.util.concurrent.TimeUnit timeUnit)
sample - The value to record.timeUnit - The unit of time of the incoming sample.public double poll(java.util.concurrent.TimeUnit timeUnit)
timeUnit - The base unit of time to scale the max to.public double poll()
public void record(double sample)
sample - The value to record.