Package io.aeron.logbuffer
Interface BlockHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Function for handling a block of message fragments scanned from the log.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonBlock(DirectBuffer buffer, int offset, int length, int sessionId, int termId) Callback for handling a block of messages being read from a log.
-
Method Details
-
onBlock
Callback for handling a block of messages being read from a log.- Parameters:
buffer- containing the block of message fragments.offset- at which the block begins, including any frame headers.length- of the block in bytes, including any frame headers that is aligned up toFrameDescriptor.FRAME_ALIGNMENT.sessionId- of the stream containing this block of message fragments.termId- of the stream containing this block of message fragments.
-