Package io.aeron.logbuffer
Interface RawBlockHandler
- 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 raw block of fragments from the log that are contained in the underlying file.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonBlock(FileChannel fileChannel, long fileOffset, UnsafeBuffer termBuffer, int termOffset, int length, int sessionId, int termId) Notification of an available block of fragments.
-
Method Details
-
onBlock
void onBlock(FileChannel fileChannel, long fileOffset, UnsafeBuffer termBuffer, int termOffset, int length, int sessionId, int termId) Notification of an available block of fragments.- Parameters:
fileChannel- containing the block of fragments.fileOffset- at which the block begins, including any frame headers.termBuffer- mapped over the block of fragments.termOffset- in the termBuffer at which 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 of fragments.termId- of the stream of fragments.
-