public class TimeWindowMax extends 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(TimeUnit timeUnit) |
void |
record(double sample)
For use by distribution summary implementations.
|
void |
record(double sample,
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,
TimeUnit timeUnit)
sample - The value to record.timeUnit - The unit of time of the incoming sample.public double poll(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.Copyright © 2020 LeanCloud. All rights reserved.