You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Matthias J. Sax (JIRA)" <ji...@apache.org> on 2019/03/01 22:37:00 UTC
[jira] [Reopened] (KAFKA-4721) KafkaStreams (and possibly others)
should inherit Closeable
[ https://issues.apache.org/jira/browse/KAFKA-4721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias J. Sax reopened KAFKA-4721:
------------------------------------
> KafkaStreams (and possibly others) should inherit Closeable
> -----------------------------------------------------------
>
> Key: KAFKA-4721
> URL: https://issues.apache.org/jira/browse/KAFKA-4721
> Project: Kafka
> Issue Type: New Feature
> Components: streams
> Affects Versions: 0.10.1.1
> Reporter: Steven Schlansker
> Priority: Major
> Labels: needs-kip
>
> KafkaStreams should inherit AutoCloseable or Closeable so that you can use try-with-resources:
> {code}
> try (KafkaStreams reader = storage.createStreams(builder)) {
> reader.start();
> stopCondition.join();
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)