conduktor.io ↗

KIP-367 — Introduce close(Duration) to Producer and AdminClient instead of close(long, TimeUnit)

Accepted Kafka 2.2 ProducerAdmin

KIP-367 deprecates `KafkaProducer.close(long timeout, TimeUnit timeUnit)` and `AdminClient.close(long timeout, TimeUnit timeUnit)` and adds `close(Duration timeout)` replacements to match the API style introduced in KIP-266 for `KafkaConsumer`. The `(long, TimeUnit)` form is an older Java pattern that creates unnecessary verbosity and inconsistency across the client API surface.

Details

AuthorChia-Ping Tsai
StatusAccepted
Kafka Version2.2
JIRAKAFKA-7391
WikiView on Apache Wiki
Created2018-08-28
Last Modified2018-09-20
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.