KIP-191 — KafkaConsumer.subscribe() overload that takes just Pattern
Accepted Kafka 1.0 Consumer
Adds a subscribe(Pattern pattern) overload to KafkaConsumer that uses a no-op ConsumerRebalanceListener, making pattern-based subscriptions usable without boilerplate. The only existing pattern-based subscribe required passing a ConsumerRebalanceListener even when no rebalance handling was needed, forcing users to instantiate a dummy listener.
Details
| Author | Attila Kreiner |
| Status | Accepted |
| Kafka Version | 1.0 |
| JIRA | KAFKA-5726 |
| Wiki | View on Apache Wiki |
| Created | 2017-08-24 |
| Last Modified | 2017-09-01 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.