void subscribe(Pattern pattern, ConsumerRebalanceListener listener)
SubscriptionState
SubscriptionState
allows for tracking the topics, partitions, and offsets assigned to a Kafka consumer.
SubscriptionState
is in partitionsAutoAssigned if it is AUTO_TOPICS
or AUTO_PATTERN
.
Name | Description |
---|---|
|
ConsumerRebalanceListener for notifications about partition assignment changes Used exclusively when
|
|
subscribe
Method
subscribe
…FIXME
Note
|
subscribe is used exclusively when KafkaConsumer is requested to subscribe to the topics that match a pattern with a ConsumerRebalanceListener.
|