Class ReadOnlyEntryLogger


  • public class ReadOnlyEntryLogger
    extends EntryLogger
    Read Only Entry Logger.
    • Constructor Detail

      • ReadOnlyEntryLogger

        public ReadOnlyEntryLogger​(ServerConfiguration conf)
                            throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • removeEntryLog

        protected boolean removeEntryLog​(long entryLogId)
        Description copied from class: EntryLogger
        Remove entry log.
        Overrides:
        removeEntryLog in class EntryLogger
        Parameters:
        entryLogId - Entry Log File Id
      • addEntry

        public long addEntry​(long ledgerId,
                             java.nio.ByteBuffer entry)
                      throws java.io.IOException
        Overrides:
        addEntry in class EntryLogger
        Throws:
        java.io.IOException