vertx / io.vertx.kafka.client.consumer / KafkaConsumer / seek

seek

abstract fun seek(topicPartition: TopicPartition, offset: Long): KafkaConsumer<K, V>

Overrides the fetch offsets that the consumer will use on the next poll.

Parameters

topicPartition - topic partition for which seek

offset - offset to seek inside the topic partition

Return
current KafkaConsumer instance

abstract fun seek(topicPartition: TopicPartition, offset: Long, completionHandler: Handler<AsyncResult<Void>>): KafkaConsumer<K, V>

Overrides the fetch offsets that the consumer will use on the next poll.

Parameters

topicPartition - topic partition for which seek

offset - offset to seek inside the topic partition

completionHandler - handler called on operation completed

Return
current KafkaConsumer instance