Status
Current state: "Under Discussion"
Discussion thread: here
JIRA: KAFKA-6986
Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).
Motivation
By adding metrics(), now any client can get the metrics from AdminClient, this is a should-have function since all the other clients(producer, consumer...) have it.
Public Interfaces
/** * Get the metrics kept by the adminClient * * @return */ public abstract Map<MetricName, ? extends Metric> metrics();
Proposed Changes
@Override public Map<MetricName, ? extends Metric> metrics() { return Collections.unmodifiableMap(this.metrics.metrics()); }
Compatibility, Deprecation, and Migration Plan
- No known compatibility issues.