suspend fun <K, V> KafkaConsumer<K, V>.assignAwait(topicPartition: TopicPartition): Unit
Manually assign a partition to this consumer.
topicPartition
- partition which want assigned
completionHandler
- handler called on operation completed
Returncurrent
KafkaConsumer instance *
suspend fun <K, V> KafkaConsumer<K, V>.assignAwait(topicPartitions: Set<TopicPartition>): Unit
Manually assign a list of partition to this consumer.
topicPartitions
- partitions which want assigned
completionHandler
- handler called on operation completed
Returncurrent
KafkaConsumer instance *