Interface JournalFileReader
-
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
SplitJournalFileReader
public interface JournalFileReader extends Closeable
TheJournalFile
reader. It reads the journal file backwards, starting from the last written line.The implementation doesn't need to be thread-safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
readLine()
Read the line from the journal, using LIFO strategy (last in, first out).
-
-
-
Method Detail
-
readLine
String readLine() throws IOException
Read the line from the journal, using LIFO strategy (last in, first out).- Returns:
- the journal record
- Throws:
IOException
-
-