Class DefaultEntryLogger.BufferedLogChannel

All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
DefaultEntryLogger

static class DefaultEntryLogger.BufferedLogChannel extends BufferedChannel
  • Constructor Details

    • BufferedLogChannel

      public BufferedLogChannel(io.netty.buffer.ByteBufAllocator allocator, FileChannel fc, int writeCapacity, int readCapacity, long logId, File logFile, long unpersistedBytesBound) throws IOException
      Throws:
      IOException
  • Method Details

    • getLogId

      public long getLogId()
    • getLogFile

      public File getLogFile()
    • registerWrittenEntry

      public void registerWrittenEntry(long ledgerId, long entrySize)
    • getLedgersMap

      public ConcurrentLongLongHashMap getLedgersMap()
    • getLedgerIdAssigned

      public Long getLedgerIdAssigned()
    • setLedgerIdAssigned

      public void setLedgerIdAssigned(Long ledgerId)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • appendLedgersMap

      void appendLedgersMap() throws IOException
      Append the ledger map at the end of the entry log. Updates the entry log file header with the offset and size of the map.
      Throws:
      IOException