public interface MessageFormatter extends Configurable, Closeable
Modifier and Type | Method and Description |
---|---|
default void |
close()
Closes the formatter
|
default void |
configure(Map<String,?> configs)
Configures the MessageFormatter
|
void |
writeTo(ConsumerRecord<byte[],byte[]> consumerRecord,
PrintStream output)
Parses and formats a record for display
|
default void configure(Map<String,?> configs)
configure
in interface Configurable
configs
- Map to configure the formattervoid writeTo(ConsumerRecord<byte[],byte[]> consumerRecord, PrintStream output)
consumerRecord
- the record to formatoutput
- the print stream used to output the recorddefault void close()
close
in interface AutoCloseable
close
in interface Closeable