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)