Interface DoubleCollector
-
- All Superinterfaces:
Collector,MetricCollector,PostConstruct,Serializable
- All Known Implementing Classes:
BagCollector,ChainedDoubleCollector,DoubleCounter,DoubleGauge,NullCollector,PutCounter
public interface DoubleCollector extends Collector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidput(double value)Place a double value into the collector to be reported.voidput(Instant time, double value)Place a double value and associated timestamp into the collector to be reported.-
Methods inherited from interface org.kairosdb.metrics4j.collectors.MetricCollector
reportMetric, setContextProperties
-
Methods inherited from interface org.kairosdb.metrics4j.PostConstruct
init
-
-
-
-
Method Detail
-
put
void put(double value)
Place a double value into the collector to be reported. The actual value reported is determined by the collector implementation that is configured for this source.- Parameters:
value- Value to be reported.
-
put
void put(Instant time, double value)
Place a double value and associated timestamp into the collector to be reported. The actual value and time reported is determined by the collector implementation that is configured for this source.- Parameters:
time- Suggested timestamp to use when reporting.value- Value to be reported.
-
-