Class DefaultVertxKafkaClientFactory

    • Constructor Detail

      • DefaultVertxKafkaClientFactory

        public DefaultVertxKafkaClientFactory()
    • Method Detail

      • getVertxKafkaConsumer

        public <K,​V> io.vertx.kafka.client.consumer.KafkaConsumer<K,​V> getVertxKafkaConsumer​(io.vertx.core.Vertx vertx,
                                                                                                         Properties config)
        Description copied from interface: VertxKafkaClientFactory
        Creates a new instance of the KafkaConsumer class.
        Specified by:
        getVertxKafkaConsumer in interface VertxKafkaClientFactory
        Parameters:
        vertx - vertx instance
        config - The consumer configs.
        Returns:
        an instance of Kafka consumer.
      • getVertxKafkaProducer

        public <K,​V> io.vertx.kafka.client.producer.KafkaProducer<K,​V> getVertxKafkaProducer​(io.vertx.core.Vertx vertx,
                                                                                                         Properties config)
        Description copied from interface: VertxKafkaClientFactory
        Creates a new instance of the KafkaProducer class.
        Specified by:
        getVertxKafkaProducer in interface VertxKafkaClientFactory
        Parameters:
        vertx - vertx instance
        config - The producer configs.
        Returns:
        an instance of Kafka producer.
      • getBootstrapBrokers

        public String getBootstrapBrokers​(VertxKafkaConfiguration configuration)
        Description copied from interface: VertxKafkaClientFactory
        URL of the Kafka brokers to use. The format is host1:port1,host2:port2, and the list can be a subset of brokers or a VIP pointing to a subset of brokers.

        This option is known as bootstrap.servers in the Kafka documentation.

        Specified by:
        getBootstrapBrokers in interface VertxKafkaClientFactory
        Parameters:
        configuration - the configuration