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)
Consolidatorupdate in interface Consolidatort - 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)
Consolidatorvalue in interface Consolidatorpublic boolean isEmpty()
ConsolidatorisEmpty in interface Consolidatorpublic boolean isGauge()
ConsolidatorisGauge in interface Consolidator