conduktor.io ↗

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

AuthorPoAn Yang
StatusAccepted
Kafka Version4.1
JIRAKAFKA-18760
WikiView on Apache Wiki
Created2025-03-12
Last Modified2025-04-14
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.