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
| Author | Andrew Coates |
| Status | Accepted |
| Kafka Version | 2.4 |
| JIRA | KAFKA-8454 |
| Wiki | View on Apache Wiki |
| Created | 2019-05-31 |
| Last Modified | 2019-08-06 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.