Interface JournalFileReader

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    All Known Implementing Classes:
    SplitJournalFileReader

    public interface JournalFileReader
    extends java.io.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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String readLine()
      Read the line from the journal, using LIFO strategy (last in, first out).
      • Methods inherited from interface java.io.Closeable

        close
    • Method Detail

      • readLine

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