[ https://issues.apache.org/jira/browse/KAFKA-5726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ismael Juma updated KAFKA-5726: ------------------------------- Labels: needs-kip newbie usability (was: usability) > KafkaConsumer.subscribe() overload that takes just Pattern without > ConsumerRebalanceListener > -------------------------------------------------------------------------------------------- > > Key: KAFKA-5726 > URL: https://issues.apache.org/jira/browse/KAFKA-5726 > Project: Kafka > Issue Type: Improvement > Components: consumer > Affects Versions: 0.11.0.0 > Reporter: Yeva Byzek > Priority: Minor > Labels: needs-kip, newbie, usability > > Request: provide {{subscribe(Pattern pattern)}} overload, similar to > {{subscribe(Collection<String> topics)}}, > Today, for a consumer to subscribe to topics based on a regular expression > (i.e. {{Pattern}}), the only method option also requires to pass in a > {{ConsumerRebalanceListener}}. This is not user-friendly to require this > second argument. It seems {{new NoOpConsumerRebalanceListener()}} has to be > used. > Use case: multi datacenter, allowing easier subscription to multiple topics > prefixed with datacenter names, just by using a pattern subscription. -- This message was sent by Atlassian JIRA (v6.4.14#64029)