Class JournalRecordReaderUtil

java.lang.Object
io.camunda.zeebe.journal.record.JournalRecordReaderUtil

public final class JournalRecordReaderUtil extends Object
Common methods used by SegmentWriter and SegmentReader to read records from a buffer.
  • Constructor Details

  • Method Details

    • read

      public JournalRecord read(ByteBuffer buffer, long expectedIndex)
      Reads the JournalRecord in the buffer at the current position. After the methods returns, the position of buffer will be advanced to the next record.