Interface Collector
-
- All Superinterfaces:
MetricCollector,PostConstruct,Serializable
- All Known Subinterfaces:
DoubleCollector,DurationCollector,LongCollector,StringCollector,TimeCollector
- All Known Implementing Classes:
BagCollector,ChainedCollector,ChainedDoubleCollector,ChainedDurationCollector,ChainedLongCollector,ChainedStringCollector,ChainedTimeCollector,DoubleCounter,DoubleGauge,LastTime,LongCounter,LongGauge,MaxLongGauge,NullCollector,PutCounter,SimpleStats,SimpleTimerMetric,StringReporter,TimeDelta,TimerCollector,TimestampCounter
public interface Collector extends PostConstruct, MetricCollector
All collectors must be thread safe
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collectorclone()The first instance of a collector is unmarshalled from configuration using hocon, all other instances are cloned from that first one so the clone method should pass along any configuration that was set.-
Methods inherited from interface org.kairosdb.metrics4j.collectors.MetricCollector
reportMetric, setContextProperties
-
Methods inherited from interface org.kairosdb.metrics4j.PostConstruct
init
-
-
-
-
Method Detail
-
clone
Collector clone()
The first instance of a collector is unmarshalled from configuration using hocon, all other instances are cloned from that first one so the clone method should pass along any configuration that was set.- Returns:
- Clone of this collector
-
-