Class CommandRecordV2.LASCommandRecordV2

java.lang.Object
com.illumon.iris.binarystore.CommandRecordV2
com.illumon.iris.binarystore.CommandRecordV2.LASCommandRecordV2
All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable, RecordData
Enclosing class:
CommandRecordV2

public static class CommandRecordV2.LASCommandRecordV2
extends CommandRecordV2
Wrap a LAS command (as defined in com.illumon.iris.db.v2.logaggregator.CommandHelper.LasInnerCommandId) in a record entry.
  • Constructor Details

  • Method Details

    • getLasCommandByte

      public byte getLasCommandByte()
    • getPayload

      public byte[] getPayload()
    • write

      public void write​(ByteBuffer buffer)
      Description copied from interface: RecordData
      Write the record data to the given data buffer.
      Specified by:
      write in interface RecordData
      Overrides:
      write in class CommandRecordV2
      Parameters:
      buffer - write to this buffer
    • append

      public com.fishlib.base.log.LogOutput append​(com.fishlib.base.log.LogOutput logOutput)
      Specified by:
      append in interface com.fishlib.base.log.LogOutputAppendable
      Overrides:
      append in class CommandRecordV2
    • getDataSize

      public int getDataSize()
      Description copied from interface: RecordData
      Determine the required buffer size in bytes. Note that this method is intended for use in exception-handling and may not have good performance, and may allocate temporary buffers to determine the final data size.
      Specified by:
      getDataSize in interface RecordData
      Overrides:
      getDataSize in class CommandRecordV2
      Returns:
      the required buffer size in bytes