Interface JournalFileReader

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
SplitJournalFileReader

public interface JournalFileReader extends Closeable
The JournalFile reader. It reads the journal file backwards, starting from the last written line.

The implementation doesn't need to be thread-safe.

  • Method Summary

    Modifier and Type
    Method
    Description
    Read the line from the journal, using LIFO strategy (last in, first out).

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • readLine

      String readLine() throws IOException
      Read the line from the journal, using LIFO strategy (last in, first out).
      Returns:
      the journal record
      Throws:
      IOException