[ https://issues.apache.org/jira/browse/KAFKA-2961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15952193#comment-15952193 ]
Timo Meijer commented on KAFKA-2961: ------------------------------------ [~jasong35] Since consuming only a single topic is a very, very common use case, I would argue that adding a convenience overloaded method subscribe(String) would improve the user experience with the API. In my opinion, the signature of the method does not communicate if it is an additive assignment or not whether this convenience method is added or not. > 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.15#6346)