public class KafkaClient extends Object
| Constructor and Description |
|---|
KafkaClient(Map<String,String> config) |
KafkaClient(Map<String,String> config,
TaskHandler taskHandler) |
KafkaClient(io.vertx.core.Vertx vertx,
Map<String,String> config,
TaskHandler taskHandler) |
| Modifier and Type | Method and Description |
|---|---|
<V> QueueSender<V> |
createSender(KafkaSenderProperties properties) |
<V> void |
subscribe(Class<V> type,
KafkaSubscriberProperties... propertieses) |
void |
unsubscribe() |
void |
unsubscribe(String topic) |
void |
unsubscribe(String topic,
String groupId) |
public KafkaClient(io.vertx.core.Vertx vertx,
Map<String,String> config,
TaskHandler taskHandler)
throws Exception
Exceptionpublic KafkaClient(Map<String,String> config, TaskHandler taskHandler) throws Exception
Exceptionpublic <V> void subscribe(Class<V> type, KafkaSubscriberProperties... propertieses)
public void unsubscribe(String topic)
public void unsubscribe()
public <V> QueueSender<V> createSender(KafkaSenderProperties properties)
Copyright © 2020. All rights reserved.