open fun rxSubscribe(topic: String): Completable
Subscribe to the given topic to get dynamically assigned partitions.
Due to internal buffering of messages, when changing the subscribed topic the old topic may remain in effect (as observed by the record handler}) until some time after the given completionHandler is called. In contrast, the once the given completionHandler is called the io.vertx.reactivex.kafka.client.consumer.KafkaConsumer#batchHandler will only see messages consistent with the new topic.
Return
open fun rxSubscribe(topics: MutableSet<String>): Completable
Subscribe to the given list of topics to get dynamically assigned partitions.
Due to internal buffering of messages, when changing the subscribed topics the old set of topics may remain in effect (as observed by the record handler}) until some time after the given completionHandler is called. In contrast, the once the given completionHandler is called the io.vertx.reactivex.kafka.client.consumer.KafkaConsumer#batchHandler will only see messages consistent with the new set of topics.
topics - topics to subscribe to
Return