mirror of https://github.com/apache/kafka.git
In Kafka Streams, configuration classes typically follow a fluent API pattern to ensure a consistent and intuitive developer experience. However, the current implementation of `org.apache.kafka.streams.KafkaStreams$CloseOptions` deviates from this convention by exposing a public constructor, breaking the uniformity expected across the API. To address this inconsistency, we propose introducing a new `CloseOptions` class that adheres to the fluent API style, replacing the existing implementation. The new class will retain the existing `timeout(Duration)` and `leaveGroup(boolean)` methods but will enforce fluent instantiation and configuration. Given the design shift, we will not maintain backward compatibility with the current class. This change aligns with the goal of standardizing configuration objects across Kafka Streams, offering developers a more cohesive and predictable API. Reviewers: Bill Bejeck<bbejeck@apache.org> |
||
---|---|---|
.. | ||
documentation | ||
images | ||
js | ||
streams | ||
README.md | ||
api.html | ||
compatibility-summary.html | ||
configuration.html | ||
connect.html | ||
design.html | ||
docker.html | ||
documentation.html | ||
ecosystem.html | ||
implementation.html | ||
introduction.html | ||
ops.html | ||
protocol.html | ||
quickstart.html | ||
security.html | ||
toc.html | ||
upgrade.html | ||
uses.html | ||
zk2kraft-summary.html |
README.md
Docs
The documentation needs to run with kafka-site. Please check the README in the kafka-site repository to preview documentation locally.