Package org.apache.kafka.common.metrics
Interface Gauge<T>
-
- All Superinterfaces:
MetricValueProvider<T>
public interface Gauge<T> extends MetricValueProvider<T>
A gauge metric is an instantaneous reading of a particular value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
value(MetricConfig config, long now)
Returns the current value associated with this gauge.
-
-
-
Method Detail
-
value
T value(MetricConfig config, long now)
Returns the current value associated with this gauge.- Parameters:
config
- The configuration for this metricnow
- The POSIX time in milliseconds the measurement is being taken
-
-