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.
Receives the records of a segment.
-
Method Summary
Modifier and TypeMethodDescriptionvoidrecord(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 bitlate- 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 onlyfrom- the first byte of the bodyto- the byte after the body
-