Package com.networknt.kafka.producer
Interface NativeLightProducer
-
- All Superinterfaces:
LightProducer
- All Known Implementing Classes:
SidecarProducer
public interface NativeLightProducer extends LightProducer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.kafka.clients.producer.ProducergetProducer()Return the Kafka Producer instance so that it can be used to produce message to a Kafka topic.-
Methods inherited from interface com.networknt.kafka.producer.LightProducer
close, open
-
-
-
-
Method Detail
-
getProducer
org.apache.kafka.clients.producer.Producer getProducer()
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.- Returns:
- Kafka producer instance
-
-