public class MaxKafkaMetricAccumulator extends DefaultKafkaMetricAccumulator
isMerged, kafkaMetric, mergedValue
Constructor and Description |
---|
MaxKafkaMetricAccumulator(org.apache.kafka.common.metrics.KafkaMetric kafkaMetric) |
Modifier and Type | Method and Description |
---|---|
Accumulator<Void,Double> |
clone()
Duplicates the accumulator.
|
void |
merge(Accumulator<Void,Double> other)
Used by system internally to merge the collected parts of an accumulator
at the end of the job.
|
add, createFor, getLocalValue, getMeasurableFromKafkaMetric, resetLocal, toString
public MaxKafkaMetricAccumulator(org.apache.kafka.common.metrics.KafkaMetric kafkaMetric)
public void merge(Accumulator<Void,Double> other)
Accumulator
merge
in interface Accumulator<Void,Double>
merge
in class DefaultKafkaMetricAccumulator
other
- Reference to accumulator to merge in.public Accumulator<Void,Double> clone()
Accumulator
CloneNotSupportedException
clone
in interface Accumulator<Void,Double>
clone
in class DefaultKafkaMetricAccumulator
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.