You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jesse Anderson (JIRA)" <ji...@apache.org> on 2015/12/08 17:43:10 UTC

[jira] [Created] (KAFKA-2961) Add a Single Topic KafkaConsumer Helper Function

Jesse Anderson created KAFKA-2961:
-------------------------------------

             Summary: Add a Single Topic KafkaConsumer Helper Function
                 Key: KAFKA-2961
                 URL: https://issues.apache.org/jira/browse/KAFKA-2961
             Project: Kafka
          Issue Type: Bug
          Components: consumer
    Affects Versions: 0.9.0.0
            Reporter: Jesse Anderson
            Assignee: Neha Narkhede


To subscribe to a single topic, you need to write more code than you should:
consumer.subscribe(Arrays.asList(topic));

There should be a helper function to pass in a single topic to subscribe on. Like this:
consumer.subscribe(topic);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)