vertx / io.vertx.rxjava.kafka.client.consumer / KafkaConsumer / assign

assign

open fun assign(topicPartition: TopicPartition): KafkaConsumer<K, V>

Manually assign a partition to this consumer.

Parameters

topicPartition - partition which want assigned

Return
current KafkaConsumer instance

open fun assign(topicPartitions: MutableSet<TopicPartition>): KafkaConsumer<K, V>

Manually assign a list of partition to this consumer.

Parameters

topicPartitions - partitions which want assigned

Return
current KafkaConsumer instance

open fun assign(topicPartition: TopicPartition, completionHandler: Handler<AsyncResult<Void>>): KafkaConsumer<K, V>

Manually assign a partition to this consumer.

Parameters

topicPartition - partition which want assigned

completionHandler - handler called on operation completed

Return
current KafkaConsumer instance

open fun assign(topicPartitions: MutableSet<TopicPartition>, completionHandler: Handler<AsyncResult<Void>>): KafkaConsumer<K, V>

Manually assign a list of partition to this consumer.

Parameters

topicPartitions - partitions which want assigned

completionHandler - handler called on operation completed

Return
current KafkaConsumer instance