public class EventLogger
extends java.lang.Object
implements org.apache.kafka.common.Reconfigurable, java.lang.AutoCloseable
Constructor and Description |
---|
EventLogger() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
configure(java.util.Map<java.lang.String,?> configs) |
Exporter |
eventExporter() |
void |
log(io.cloudevents.CloudEvent event)
The log method synchronously waits for the topic to be created if it does not exist yet.
|
boolean |
ready(io.cloudevents.CloudEvent event)
Is the event exporter ready for sending events ? This method does not block.
|
java.util.Set<java.lang.String> |
reconfigurableConfigs() |
void |
reconfigure(java.util.Map<java.lang.String,?> configs) |
void |
validateReconfiguration(java.util.Map<java.lang.String,?> configs) |
public void log(io.cloudevents.CloudEvent event)
public boolean ready(io.cloudevents.CloudEvent event)
public java.util.Set<java.lang.String> reconfigurableConfigs()
reconfigurableConfigs
in interface org.apache.kafka.common.Reconfigurable
public void validateReconfiguration(java.util.Map<java.lang.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(java.util.Map<java.lang.String,?> configs)
reconfigure
in interface org.apache.kafka.common.Reconfigurable
public void configure(java.util.Map<java.lang.String,?> configs)
configure
in interface org.apache.kafka.common.Configurable
public void close() throws java.lang.Exception
close
in interface java.lang.AutoCloseable
java.lang.Exception
public Exporter eventExporter()