public static final class Consolidator.None extends Object implements Consolidator
Consolidator.AbstractConsolidator, Consolidator.Avg, Consolidator.Max, Consolidator.None
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty()
Returns true if the state is the same as it would be if a new instance of the consolidator
was created.
|
boolean |
isGauge()
Returns true if this consolidator is intended for gauge values.
|
void |
update(long t,
double v)
Update the state with a new primary datapoint.
|
double |
value(long t)
Return the consolidated value for the specified timestamp.
|
public void update(long t, double v)
Consolidator
update
in interface Consolidator
t
- Timestamp for the new value.v
- Value to include in the consolidated aggregate. If there is no new measurement, then
NaN
can be used to force the completion of the consolidated value.public double value(long t)
Consolidator
value
in interface Consolidator
public boolean isEmpty()
Consolidator
isEmpty
in interface Consolidator
public boolean isGauge()
Consolidator
isGauge
in interface Consolidator