public class SplitJournalFileReader extends Object implements JournalFileReader
Constructor and Description |
---|
SplitJournalFileReader(JournalFileReader roJournalReader,
JournalFileReader rwJournalReader,
Optional<String> lastRoJournalEntry) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
readLine()
Read the line from the journal, using LIFO strategy (last in, first out).
|
public SplitJournalFileReader(JournalFileReader roJournalReader, JournalFileReader rwJournalReader, Optional<String> lastRoJournalEntry)
public String readLine() throws IOException
JournalFileReader
readLine
in interface JournalFileReader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.