Class SinglePartitionLoggerThreadUnsafeBase

java.lang.Object
io.deephaven.enterprise.binlog.buffered.impl.SinglePartitionLoggerThreadUnsafeBase
All Implemented Interfaces:
Logger, Closeable, Flushable, AutoCloseable

@InternalUseOnly public abstract class SinglePartitionLoggerThreadUnsafeBase extends Object implements Logger
The base class for not-thread-safe, single-partition buffered loggers. While this class is public, it is used as a code generation target and not for public extension. See package-info.
  • Constructor Details

    • SinglePartitionLoggerThreadUnsafeBase

      protected SinglePartitionLoggerThreadUnsafeBase(ByteBuffer buffer, SinglePartitionWriter writer, int maxEntrySize)
  • Method Details

    • flush

      public final void flush() throws IOException
      Description copied from interface: Logger
      Flushes any buffered data to the output sink.
      Specified by:
      flush in interface Flushable
      Specified by:
      flush in interface Logger
      Throws:
      IOException - if an IO exception occurs
    • close

      public final void close() throws IOException
      Description copied from interface: Logger
      Flushes any buffered data to the output sink and then closes this logger.

      If this logger has already been closed then this method returns immediately.

      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface Logger
      Throws:
      IOException - if an IO exception occurs
    • takeBuffer

      protected final ByteBuffer takeBuffer() throws IOException
      Throws:
      IOException
    • abortBuffer

      protected final void abortBuffer()
    • commitBuffer

      protected final void commitBuffer() throws IOException
      Throws:
      IOException
    • commitBuffers

      protected final void commitBuffers(int numRows) throws IOException
      Throws:
      IOException