Interface SegmentReader.Visitor

Enclosing class:
SegmentReader
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface SegmentReader.Visitor
Receives the records of a segment.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    record(int type, long late, long time, long id, byte[] bytes, int from, int to)
    One record or definition.
  • Method Details

    • record

      void record(int type, long late, long time, long id, byte[] bytes, int from, int to)
      One record or definition.
      Parameters:
      type - the type, without the late bit
      late - by how much it was late, ms (0 — in time)
      time - the time of ordering, ms of the epoch (of a definition — that of the record before it)
      id - the number (of a definition — that of the record before it)
      bytes - the bytes, valid during the call only
      from - the first byte of the body
      to - the byte after the body