public class KafkaMessageGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SCHEMA_REGISTRY_URL |
| Constructor and Description |
|---|
KafkaMessageGenerator(String broker,
Class<?> valueSerializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
populateAvroMsgIntoKafka(String topic,
int numMsg) |
void |
populateJsonMsgIntoKafka(String topic,
int numMsg) |
void |
populateJsonMsgWithTimestamps(String topic,
int numMsg) |
void |
populateMessages(String topic,
String... messages) |
public static final String SCHEMA_REGISTRY_URL
public void populateAvroMsgIntoKafka(String topic, int numMsg)
public void populateJsonMsgIntoKafka(String topic, int numMsg) throws ExecutionException, InterruptedException
public void populateJsonMsgWithTimestamps(String topic, int numMsg) throws ExecutionException, InterruptedException
public void populateMessages(String topic, String... messages) throws ExecutionException, InterruptedException
Copyright © 2021 The Apache Software Foundation. All rights reserved.