public class ConsumerUtil extends Object
Consumer
.Modifier and Type | Method and Description |
---|---|
static void |
seek(String topic,
org.apache.kafka.clients.consumer.Consumer consumer,
KafkaTrackingToken token)
Subscribes the
Consumer to a particular org.apache.kafka.common.internals.Topic and uses KafkaTrackingToken to update the partitions whenever a re-balance happens. |
public static void seek(String topic, org.apache.kafka.clients.consumer.Consumer consumer, KafkaTrackingToken token)
Consumer
to a particular org.apache.kafka.common.internals.Topic
and uses KafkaTrackingToken
to update the partitions whenever a re-balance happens.topic
- the topic.consumer
- the consumer.token
- the token.Copyright © 2010–2018. All rights reserved.