Class WriterWithMetadata


  • class WriterWithMetadata
    extends java.lang.Object
    WriterWithMetadata.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) long addEntry​(long ledgerId, io.netty.buffer.ByteBuf entry)  
      (package private) void finalizeAndClose()  
      (package private) void flush()  
      (package private) int logId()  
      (package private) boolean shouldRoll​(io.netty.buffer.ByteBuf entry, long rollThreshold)  
      • Methods inherited from class java.lang.Object

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

      • WriterWithMetadata

        WriterWithMetadata​(LogWriter writer,
                           EntryLogMetadata metadata,
                           io.netty.buffer.ByteBufAllocator allocator)
                    throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • logId

        int logId()
      • shouldRoll

        boolean shouldRoll​(io.netty.buffer.ByteBuf entry,
                           long rollThreshold)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • addEntry

        long addEntry​(long ledgerId,
                      io.netty.buffer.ByteBuf entry)
               throws java.io.IOException
        Throws:
        java.io.IOException
      • flush

        void flush()
            throws java.io.IOException
        Throws:
        java.io.IOException
      • finalizeAndClose

        void finalizeAndClose()
                       throws java.io.IOException
        Throws:
        java.io.IOException