public interface MessageFormatter extends Configurable, java.io.Closeable
Modifier and Type | Method and Description |
---|---|
default void |
close()
Closes the formatter
|
default void |
configure(java.util.Map<java.lang.String,?> configs)
Configures the MessageFormatter
|
default void |
init(java.util.Properties props)
Deprecated.
Use
configure(Map) instead, this method is for backward compatibility with the older Formatter interface |
void |
writeTo(ConsumerRecord<byte[],byte[]> consumerRecord,
java.io.PrintStream output)
Parses and formats a record for display
|
@Deprecated default void init(java.util.Properties props)
configure(Map)
instead, this method is for backward compatibility with the older Formatter interfaceprops
- Properties to configure the formatterdefault void configure(java.util.Map<java.lang.String,?> configs)
configure
in interface Configurable
configs
- Map to configure the formattervoid writeTo(ConsumerRecord<byte[],byte[]> consumerRecord, java.io.PrintStream output)
consumerRecord
- the record to formatoutput
- the print stream used to output the recorddefault void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable