public class DefaultKafkaProducerFactory extends Object implements KafkaProducerFactory
Producer
instances.Constructor and Description |
---|
DefaultKafkaProducerFactory() |
Modifier and Type | Method and Description |
---|---|
org.apache.kafka.clients.producer.Producer<byte[],byte[]> |
newKafkaProducer(Properties config)
Creates a new Kafka Producer from the given configuration properties.
|
public DefaultKafkaProducerFactory()
public org.apache.kafka.clients.producer.Producer<byte[],byte[]> newKafkaProducer(Properties config)
newKafkaProducer
in interface KafkaProducerFactory
config
- Kafka Producer configuration
properties.Producer
.Copyright © 1999-2019 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.