public class KafkaExporter<T> extends Object implements Exporter<T>
Constructor and Description |
---|
KafkaExporter() |
KafkaExporter(Function<Properties,org.apache.kafka.clients.producer.Producer<String,byte[]>> producerFactory) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
configure(Map<String,?> configs) |
CompletableFuture<Boolean> |
emit(T data)
Filter and transform the events as appropriate and send to the specified destination.
|
org.apache.kafka.clients.producer.Producer<String,byte[]> |
producer() |
Set<String> |
reconfigurableConfigs() |
void |
reconfigure(Map<String,?> configs) |
void |
validateReconfiguration(Map<String,?> configs) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
routeReady
public KafkaExporter()
public KafkaExporter(Function<Properties,org.apache.kafka.clients.producer.Producer<String,byte[]>> producerFactory)
public void configure(Map<String,?> configs)
configure
in interface org.apache.kafka.common.Configurable
public CompletableFuture<Boolean> emit(T data)
Exporter
public void close() throws Exception
close
in interface AutoCloseable
Exception
public Set<String> reconfigurableConfigs()
reconfigurableConfigs
in interface org.apache.kafka.common.Reconfigurable
public void validateReconfiguration(Map<String,?> configs) throws org.apache.kafka.common.config.ConfigException
validateReconfiguration
in interface org.apache.kafka.common.Reconfigurable
org.apache.kafka.common.config.ConfigException
public void reconfigure(Map<String,?> configs)
reconfigure
in interface org.apache.kafka.common.Reconfigurable
public org.apache.kafka.clients.producer.Producer<String,byte[]> producer()