public interface RecordReader extends Closeable, Configurable
Modifier and Type | Method and Description |
---|---|
default void |
close()
Closes this reader.
|
default void |
configure(Map<String,?> configs)
Configure this class with the given key-value pairs
|
Iterator<ProducerRecord<byte[],byte[]>> |
readRecords(InputStream inputStream)
read byte array from input stream and then generate an iterator of producer record
|
default void configure(Map<String,?> configs)
Configurable
configure
in interface Configurable
Iterator<ProducerRecord<byte[],byte[]>> readRecords(InputStream inputStream)
{@link
- InputStream} of messages. the implementation does not need to close the input stream.default void close()
close
in interface AutoCloseable
close
in interface Closeable