public class EventLogger<T>
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<io.cloudevents.CloudEvent<io.cloudevents.v1.AttributesImpl,T>> |
eventExporter() |
void |
log(io.cloudevents.CloudEvent<io.cloudevents.v1.AttributesImpl,T> event)
Log an event.
|
boolean |
ready(io.cloudevents.CloudEvent<io.cloudevents.v1.AttributesImpl,T> event)
Check if the event exporter ready for sending events.
|
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<io.cloudevents.v1.AttributesImpl,T> event)
event
- public boolean ready(io.cloudevents.CloudEvent<io.cloudevents.v1.AttributesImpl,T> 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