KIP-1145 — Kafka Streams `CloseOptions` should not have a public constructor
Discussion Streams
Proposes making the `CloseOptions` class in Kafka Streams not directly instantiable via a public constructor, replacing it with a builder or factory pattern. A public constructor on `CloseOptions` prevents the API from evolving (adding fields with defaults) without breaking binary compatibility, since any caller constructing it directly would break if the constructor signature changes.
Details
| Author | TengYao Chi |
| Status | Discussion |
| Wiki | View on Apache Wiki |
| Created | 2025-03-14 |
| Last Modified | 2025-03-14 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.