[ https://issues.apache.org/jira/browse/KAFKA-2961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15047213#comment-15047213 ]
Jesse Anderson commented on KAFKA-2961: --------------------------------------- I understand your point. Maybe changing the method name would connote that it isn't additive in a more effective way. Maybe "setTopic(topic)" or "setSubscribeTopic(topic)" would be better. Usually a "set..." is not considered additive. > 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)