Class SplitJournalFileReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, JournalFileReader

    public class SplitJournalFileReader
    extends java.lang.Object
    implements JournalFileReader
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.lang.String readLine()
      Read the line from the journal, using LIFO strategy (last in, first out).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SplitJournalFileReader

        public SplitJournalFileReader​(JournalFileReader roJournalReader,
                                      JournalFileReader rwJournalReader,
                                      java.util.Optional<java.lang.String> lastRoJournalEntry)
    • Method Detail

      • readLine

        public java.lang.String readLine()
                                  throws java.io.IOException
        Description copied from interface: JournalFileReader
        Read the line from the journal, using LIFO strategy (last in, first out).
        Specified by:
        readLine in interface JournalFileReader
        Returns:
        the journal record
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException