@FunctionalInterface public interface BlockHandler
| Modifier and Type | Method and Description |
|---|---|
void |
onBlock(DirectBuffer buffer,
int offset,
int length,
int sessionId,
int termId)
Callback for handling a block of messages being read from a log.
|
void onBlock(DirectBuffer buffer, int offset, int length, int sessionId, int termId)
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 to
FrameDescriptor.FRAME_ALIGNMENT.sessionId - of the stream containing this block of message fragments.termId - of the stream containing this block of message fragments.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.