vertx / io.vertx.kotlin.kafka.client.consumer / io.vertx.kafka.client.consumer.KafkaConsumer / beginningOffsetsAwait

beginningOffsetsAwait

suspend fun <K, V> KafkaConsumer<K, V>.beginningOffsetsAwait(topicPartition: TopicPartition): Long

Get the first offset for the given partitions.

Parameters

topicPartition - the partition to get the earliest offset.

handler - handler called on operation completed. Returns the earliest available offset for the given partition