Steven Schlansker created KAFKA-4721:
----------------------------------------

             Summary: 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


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
(v6.3.15#6346)

Reply via email to