Class TotalMetric
java.lang.Object
com.mongodb.kafka.connect.util.jmx.internal.TotalMetric
- All Implemented Interfaces:
Metric
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
emit
(Consumer<MetricValue> consumer) void
sample
(long v) Take the measurement.
-
Constructor Details
-
TotalMetric
-
-
Method Details
-
emit
- Specified by:
emit
in interfaceMetric
- Parameters:
consumer
- A callback receiving aMetricValue
that may be used to obtain the name and most recent value.
-
sample
public void sample(long v) Description copied from interface:Metric
Take the measurement.
-