public class TermGapFiller
extends java.lang.Object
Constructor and Description |
---|
TermGapFiller() |
Modifier and Type | Method and Description |
---|---|
static boolean |
tryFillGap(org.agrona.concurrent.UnsafeBuffer logMetaDataBuffer,
org.agrona.concurrent.UnsafeBuffer termBuffer,
int termId,
int gapOffset,
int gapLength)
Try to gap fill the current term at a given offset if the gap contains no data.
|
public static boolean tryFillGap(org.agrona.concurrent.UnsafeBuffer logMetaDataBuffer, org.agrona.concurrent.UnsafeBuffer termBuffer, int termId, int gapOffset, int gapLength)
Note: the gap offset plus gap length must end on a FrameDescriptor.FRAME_ALIGNMENT
boundary.
logMetaDataBuffer
- containing the default headerstermBuffer
- to gap filltermId
- for the current term.gapOffset
- to fill fromgapLength
- to length of the gap.Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.