Package io.aeron.logbuffer
Class TermGapFiller
java.lang.Object
io.aeron.logbuffer.TermGapFiller
Fills a gap in a term with a padding record.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleantryFillGap(UnsafeBuffer logMetaDataBuffer, 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.
-
Constructor Details
-
TermGapFiller
public TermGapFiller()
-
-
Method Details
-
tryFillGap
public static boolean tryFillGap(UnsafeBuffer logMetaDataBuffer, 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.Note: the gap offset plus gap length must end on a
FrameDescriptor.FRAME_ALIGNMENTboundary.- Parameters:
logMetaDataBuffer- containing the default headerstermBuffer- to gap filltermId- for the current term.gapOffset- to fill fromgapLength- to length of the gap.- Returns:
- true if the gap has been filled with a padding record or false if data found.
-