@FunctionalInterface
public interface RawBlockHandler
| Modifier and Type | Method and Description |
|---|---|
void |
onBlock(java.nio.channels.FileChannel fileChannel,
long fileOffset,
org.agrona.concurrent.UnsafeBuffer termBuffer,
int termOffset,
int length,
int sessionId,
int termId)
Notification of an available block of fragments.
|
void onBlock(java.nio.channels.FileChannel fileChannel,
long fileOffset,
org.agrona.concurrent.UnsafeBuffer termBuffer,
int termOffset,
int length,
int sessionId,
int termId)
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 to
FrameDescriptor.FRAME_ALIGNMENT.sessionId - of the stream of fragments.termId - of the stream of fragments.Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.