@FunctionalInterface
public interface BlockHandler
| Modifier and Type | Method and Description |
|---|---|
void |
onBlock(org.agrona.DirectBuffer buffer,
int offset,
int length,
int sessionId,
int termId)
Callback for handling a block of messages being read from a log.
|
void onBlock(org.agrona.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-2018 Real Logic Ltd. All Rights Reserved.