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

seek

abstract fun seek(topicPartition: TopicPartition, offset: Long): KafkaReadStream<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 KafkaReadStream instance

abstract fun seek(topicPartition: TopicPartition, offset: Long, completionHandler: Handler<AsyncResult<Void>>): KafkaReadStream<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 KafkaReadStream instance