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

# seekToBeginning

`abstract fun seekToBeginning(topicPartitions: MutableSet<TopicPartition>): KafkaReadStream<K, V>`

Seek to the first offset for each of the given partitions.

### Parameters

`topicPartitions` - topic partition for which seek

Return
current KafkaReadStream instance

`abstract fun seekToBeginning(topicPartitions: MutableSet<TopicPartition>, completionHandler: Handler<AsyncResult<Void>>): KafkaReadStream<K, V>`

Seek to the first offset for each of the given partitions.

Due to internal buffering of messages, the record handler will continue to observe messages fetched with respect to the old offset until some time after the given `completionHandler` is called. In contrast, the once the given `completionHandler` is called the `#batchHandler(Handler)` will only see messages consistent with the new offset.

### Parameters

`topicPartitions` - topic partition for which seek

`completionHandler` - handler called on operation completed

Return
current KafkaReadStream instance