Class KafkaExporter<T>
java.lang.Object
io.confluent.telemetry.events.exporter.kafka.KafkaExporter<T>
- All Implemented Interfaces:
Exporter<T>, AutoCloseable, org.apache.kafka.common.Configurable, org.apache.kafka.common.Reconfigurable
- Direct Known Subclasses:
EventKafkaExporter
-
Constructor Summary
ConstructorsConstructorDescriptionKafkaExporter(Function<Properties, org.apache.kafka.clients.producer.Producer<String, byte[]>> producerFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidFilter and transform the events as appropriate and send to the specified destination.org.apache.kafka.clients.producer.Producer<String, byte[]> producer()voidreconfigure(Map<String, ?> configs) voidvalidateReconfiguration(Map<String, ?> configs) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Exporter
routeReady
-
Constructor Details
-
KafkaExporter
public KafkaExporter() -
KafkaExporter
public KafkaExporter(Function<Properties, org.apache.kafka.clients.producer.Producer<String, byte[]>> producerFactory)
-
-
Method Details
-
configure
-
emit
Description copied from interface:ExporterFilter and transform the events as appropriate and send to the specified destination. This method takes care of batching, serialization and retries. -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
reconfigurableConfigs
-
validateReconfiguration
-
reconfigure
-
producer
-