chia7712 commented on code in PR #20543:
URL: https://github.com/apache/kafka/pull/20543#discussion_r2364851975
##########
clients/src/main/java/org/apache/kafka/common/metrics/Gauge.java:
##########
@@ -20,13 +20,4 @@
* A gauge metric is an instantaneous reading of a particular value.
*/
@FunctionalInterface
-public interface Gauge<T> extends MetricValueProvider<T> {
-
- /**
- * Returns the current value associated with this gauge.
- * @param config The configuration for this metric
- * @param now The POSIX time in milliseconds the measurement is being taken
- */
- T value(MetricConfig config, long now);
-
-}
+public interface Gauge<T> extends MetricValueProvider<T> { }
Review Comment:
The `Gauge` type seems redundant at this stage. Would it be worth filing a
KIP to deprecate it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]