public class KafkaUtils extends Object
| Constructor and Description |
|---|
KafkaUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.kafka.clients.consumer.KafkaConsumer<String,byte[]> |
createByteConsumer(String kafkaURL,
String consumerGroupID,
Properties securityProps) |
static org.apache.kafka.clients.producer.Producer<String,byte[]> |
createByteProducer(String kafkaURL,
Properties securityProps) |
static void |
createTopic(String topic,
String zookeeperHost,
int noOfPartitions,
int noOfReplication) |
static void |
unassignConsumer(org.apache.kafka.clients.consumer.Consumer<String,byte[]> consumer) |
public static org.apache.kafka.clients.producer.Producer<String,byte[]> createByteProducer(String kafkaURL, @Nullable Properties securityProps) throws RemotingKafkaConfigurationException
public static org.apache.kafka.clients.consumer.KafkaConsumer<String,byte[]> createByteConsumer(String kafkaURL, String consumerGroupID, @Nullable Properties securityProps) throws RemotingKafkaConfigurationException
public static void unassignConsumer(org.apache.kafka.clients.consumer.Consumer<String,byte[]> consumer)
Copyright © 2004–2018. All rights reserved.