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

committedAwait

suspend fun <K, V> KafkaConsumer<K, V>.committedAwait(topicPartition: TopicPartition): OffsetAndMetadata

Get the last committed offset for the given partition (whether the commit happened by this process or another).

Parameters

topicPartition - topic partition for getting last committed offset

handler - handler called on operation completed