KIP-1143 — Deprecated Optional<String> and return String from public Endpoint#listenerName
Accepted Kafka 4.1 ProtocolAdmin
Deprecates the Optional<String> return type of org.apache.kafka.common.Endpoint#listenerName() and changes it to return a plain String. The Optional was introduced because Endpoint was designed for both server-side and client-side use where listenerName could be null, but client-side usage was removed, making the Optional unnecessary and inconsistent with the internal EndPoint class that already returns String.
Details
| Author | PoAn Yang |
| Status | Accepted |
| Kafka Version | 4.1 |
| JIRA | KAFKA-18760 |
| Wiki | View on Apache Wiki |
| Created | 2025-03-12 |
| Last Modified | 2025-04-14 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.