Class DefaultKafkaProducerFactory
java.lang.Object
org.apache.logging.log4j.core.appender.mom.kafka.DefaultKafkaProducerFactory
- All Implemented Interfaces:
KafkaProducerFactory
Creates Apache Kafka
Producer instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.kafka.clients.producer.Producer<byte[],byte[]> newKafkaProducer(Properties config) Creates a new Kafka Producer from the given configuration properties.
-
Constructor Details
-
DefaultKafkaProducerFactory
public DefaultKafkaProducerFactory()
-
-
Method Details
-
newKafkaProducer
public org.apache.kafka.clients.producer.Producer<byte[],byte[]> newKafkaProducer(Properties config) Creates a new Kafka Producer from the given configuration properties.- Specified by:
newKafkaProducerin interfaceKafkaProducerFactory- Parameters:
config- Kafka Producer configuration properties.- Returns:
- a new Kafka
Producer.
-