public class CumulativeSum extends Object implements MeasurableStat
WindowedSum
.
See also CumulativeCount
if you just want to increment the value by 1 on each recording.Constructor and Description |
---|
CumulativeSum() |
CumulativeSum(double value) |
Modifier and Type | Method and Description |
---|---|
double |
measure(MetricConfig config,
long now)
Measure this quantity and return the result as a double
|
void |
record(MetricConfig config,
double value,
long now)
Record the given value
|
String |
toString() |
public CumulativeSum()
public CumulativeSum(double value)
public void record(MetricConfig config, double value, long now)
Stat
public double measure(MetricConfig config, long now)
Measurable
measure
in interface Measurable
config
- The configuration for this metricnow
- The POSIX time in milliseconds the measurement is being taken