public class EventLogger extends Object implements org.apache.kafka.common.Reconfigurable, AutoCloseable
Constructor and Description |
---|
EventLogger() |
EventLogger(Function<EventLoggerConfig,Exporter<io.confluent.telemetry.api.events.Event>> exporterFactory) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
configure(Map<String,?> configs) |
Exporter<io.confluent.telemetry.api.events.Event> |
eventExporter() |
void |
log(io.confluent.telemetry.api.events.Event event)
Log an event.
|
boolean |
ready(io.confluent.telemetry.api.events.Event event)
Check if the event exporter ready for sending events.
|
Set<String> |
reconfigurableConfigs() |
void |
reconfigure(Map<String,?> configs) |
void |
validateReconfiguration(Map<String,?> configs) |
public EventLogger()
public EventLogger(Function<EventLoggerConfig,Exporter<io.confluent.telemetry.api.events.Event>> exporterFactory)
public void log(io.confluent.telemetry.api.events.Event event)
event
- public boolean ready(io.confluent.telemetry.api.events.Event event)
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 void configure(Map<String,?> configs)
configure
in interface org.apache.kafka.common.Configurable
public void close() throws Exception
close
in interface AutoCloseable
Exception
public Exporter<io.confluent.telemetry.api.events.Event> eventExporter()