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
| Author | Chia-Ping Tsai |
| Status | Accepted |
| Kafka Version | 2.2 |
| JIRA | KAFKA-7391 |
| Wiki | View on Apache Wiki |
| Created | 2018-08-28 |
| Last Modified | 2018-09-20 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.