conduktor.io ↗

KIP-476 — Add Java AdminClient Interface

Accepted Kafka 2.4 Admin

Converts AdminClient from an abstract class to a Java interface, enabling proper mocking, multiple implementations, and cleaner dependency injection. The abstract class design was a Java 7 workaround; with Java 8 as the minimum version, default interface methods can replace base class implementations while giving users testable interfaces.

Details

AuthorAndrew Coates
StatusAccepted
Kafka Version2.4
JIRAKAFKA-8454
WikiView on Apache Wiki
Created2019-05-31
Last Modified2019-08-06
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.