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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.confluent.telemetry.events.exporter.Exporter
routeReady
-
Constructor Details
-
KafkaExporter
public KafkaExporter() -
KafkaExporter
public KafkaExporter(Function<Properties, org.apache.kafka.clients.producer.Producer<String, byte[]>> producerFactory)
-
-
Method Details
-
configure
- Specified by:
configurein interfaceorg.apache.kafka.common.Configurable
-
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
- Specified by:
reconfigurableConfigsin interfaceorg.apache.kafka.common.Reconfigurable
-
validateReconfiguration
public void validateReconfiguration(Map<String, ?> configs) throws org.apache.kafka.common.config.ConfigException- Specified by:
validateReconfigurationin interfaceorg.apache.kafka.common.Reconfigurable- Throws:
org.apache.kafka.common.config.ConfigException
-
reconfigure
- Specified by:
reconfigurein interfaceorg.apache.kafka.common.Reconfigurable
-
producer
-