Class LogoutEventsLogger

java.lang.Object
io.deephaven.enterprise.binlog.buffered.impl.MultiPartitionLoggerThreadSafeBase
io.deephaven.enterprise.binlog.internal.gen.LogoutEventsLogger
All Implemented Interfaces:
Logger, Closeable, Flushable, AutoCloseable

public final class LogoutEventsLogger extends MultiPartitionLoggerThreadSafeBase
Automatically generated Deephaven binary logger for DbInternal.LogoutEvents format 1. For configuration details, see `io.deephaven.enterprise.schema.internal.LogFormat`
  • Field Details

  • Method Details

    • header

      public static ByteBuffer header()
    • of

      public static LogoutEventsLogger of(boolean flushOnLog, MultiPartitionWriter writer, DateTimeFormatter partitionFormatter)
      Initialize a logger for the DbInternal.LogoutEvents table, with log format 1. The returned logger will own a byte array buffer of size 2 MiB (`bufferSize`) when flushOnLog == false, otherwise 1 MiB (`maxEntrySize`).
      Parameters:
      flushOnLog - if the returned logger should be flushed on every log call
      writer - the writer for this logger
      partitionFormatter - A datetime formatter for time based partition using the Timestamp column.
      Returns:
      the logger
    • log

      public void log(Instant Timestamp, String GroupName, String Event, Boolean Immediate, Boolean Kick) throws IOException
      Encodes the data into this logger's buffer. If the remaining size of the buffer after logging is less than 1 MiB (`maxEntrySize`), this logger will be internally flushed.
      Parameters:
      Timestamp - the Timestamp value
      GroupName - the GroupName value
      Event - the Event value
      Immediate - the Immediate value
      Kick - the Kick value
      Throws:
      IOException
    • loggerInfo

      public static LoggerInfo<LogoutEventsLogger> loggerInfo()
      The basic logger information.
      Returns:
      the basic logger information
    • toString

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

      protected final void partition(String arg0) throws IOException
      Throws:
      IOException
    • 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 arg0) throws IOException
      Throws:
      IOException