abstract fun assign(partitions: MutableSet<TopicPartition>): KafkaReadStream<K, V>
Manually assign a set of partitions to this consumer.
partitions - partitions which want assigned
Return
current KafkaReadStream instance
abstract fun assign(partitions: MutableSet<TopicPartition>, completionHandler: Handler<AsyncResult<Void>>): KafkaReadStream<K, V>
Manually assign a set of partitions to this consumer.
Due to internal buffering of messages, when reassigning the old set of partitions may remain in effect (as observed by the #handler(Handler) record handler)} until some time after the given completionHandler is called. In contrast, the once the given completionHandler is called the #batchHandler(Handler) will only see messages consistent with the new set of partitions.
partitions - partitions which want assigned
completionHandler - handler called on operation completed
Return
current KafkaReadStream instance