conduktor.io ↗

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

AuthorAttila Kreiner
StatusAccepted
Kafka Version1.0
JIRAKAFKA-5726
WikiView on Apache Wiki
Created2017-08-24
Last Modified2017-09-01
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.