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

pollAwait

suspend fun <K, V> KafkaConsumer<K, V>.pollAwait(timeout: Long): KafkaConsumerRecords<K, V>

Suspending version of method io.vertx.kafka.client.consumer.KafkaConsumer.poll

Parameters

timeout - The time, in milliseconds, spent waiting in poll if data is not available in the buffer. If 0, returns immediately with any records that are available currently in the native Kafka consumer's buffer, else returns empty. Must not be negative.

Return

KafkaConsumerRecordsK,V

NOTE: This function has been automatically generated from io.vertx.kafka.client.consumer.KafkaConsumer using Vert.x codegen.