com.networknt.kafka.producer.NativeLightProducer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kafka-producer Show documentation
Show all versions of kafka-producer Show documentation
A module to push events to a Kafka topic.
package com.networknt.kafka.producer;
import org.apache.kafka.clients.producer.Producer;
public interface NativeLightProducer extends LightProducer {
/**
* Return the Kafka Producer instance so that it can be used to produce message to a Kafka topic.
* Instead of using a queue like QueuedLightProducer to hide the producer from the user, this
* interface will provide the native producer to work with.
*
* @return Kafka producer instance
*/
Producer getProducer();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy