Class MaxLongGauge
- java.lang.Object
-
- org.kairosdb.metrics4j.collectors.impl.LongGauge
-
- org.kairosdb.metrics4j.collectors.impl.MaxLongGauge
-
- All Implemented Interfaces:
Serializable,Collector,LongCollector,MetricCollector,PostConstruct
public class MaxLongGauge extends LongGauge
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.kairosdb.metrics4j.collectors.impl.LongGauge
m_gauge, m_reportContext, reset
-
-
Constructor Summary
Constructors Constructor Description MaxLongGauge()MaxLongGauge(boolean reset)
-
Method Summary
All Methods Instance Methods Concrete 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.voidput(long value)Place a long value into the collector to be reported.voidput(Instant time, long count)Place a long value and associated timestamp into the collector to be reported.-
Methods inherited from class org.kairosdb.metrics4j.collectors.impl.LongGauge
init, reportMetric, setContextProperties
-
-
-
-
Method Detail
-
clone
public Collector clone()
Description copied from interface:CollectorThe 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.
-
put
public void put(long value)
Description copied from interface:LongCollectorPlace a long value into the collector to be reported. The actual value reported is determined by the collector implementation that is configured for this source.- Specified by:
putin interfaceLongCollector- Overrides:
putin classLongGauge- Parameters:
value- Value to be reported.
-
put
public void put(Instant time, long count)
Description copied from interface:LongCollectorPlace a long 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.- Specified by:
putin interfaceLongCollector- Overrides:
putin classLongGauge- Parameters:
time- Suggested timestamp to use when reporting.count- Value to be reported.
-
-