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.Reconfigurablepublic void validateReconfiguration(Map<String,?> configs) throws org.apache.kafka.common.config.ConfigException
validateReconfiguration in interface org.apache.kafka.common.Reconfigurableorg.apache.kafka.common.config.ConfigExceptionpublic void reconfigure(Map<String,?> configs)
reconfigure in interface org.apache.kafka.common.Reconfigurablepublic void configure(Map<String,?> configs)
configure in interface org.apache.kafka.common.Configurablepublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic Exporter<io.confluent.telemetry.api.events.Event> eventExporter()