Registry / messaging / vertx-kafka-client

vertx-kafka-client

JSON →
library5.0.10javamavenunverified

A Vert.x module providing reactive Kafka client integration for asynchronous message streaming.

<dependency> <groupId>io.vertx</groupId> <artifactId>vertx-kafka-client</artifactId> <version>5.0.10</version> </dependency>
INSTALL
IMPORT
SIG · VERTX-KAFKA-CLIENT
V
vertx-kafka-client
messagingjavav5.0.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

KafkaConsumer
io.vertx.kafka.client.consumer.KafkaConsumer

Creates a Kafka consumer that subscribes to a topic and prints messages.

import io.vertx.kafka.client.consumer.KafkaConsumer; import io.vertx.core.Vertx; public class Example { public static void main(String[] args) { Vertx vertx = Vertx.vertx(); KafkaConsumer<String, String> consumer = KafkaConsumer.create(vertx, "bootstrap.servers=localhost:9092"); consumer.subscribe("my-topic"); consumer.handler(record -> System.out.println(record.value())); } }
Debug
Known issues
breakingVert.x 5 API changes may break code from Vert.x 4; check migration guide.
fix
Use Vert.x 4 compatible version if upgrading from older code.
affects: >=5.0.0
Upgrade
Version history
5.0.10latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
OpenAI (training)
1
Resources
vertx-kafka-client — mvn dependency:get vertx-kafka-client · libregistry