public class TermGapScanner
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
TermGapScanner.GapHandler
Handler for notifying of gaps in the log.
|
| Constructor and Description |
|---|
TermGapScanner() |
| Modifier and Type | Method and Description |
|---|---|
static int |
scanForGap(org.agrona.concurrent.UnsafeBuffer termBuffer,
int termId,
int rebuildOffset,
int hwmOffset,
TermGapScanner.GapHandler handler)
Scan for gaps from the rebuildOffset up to the high-water-mark.
|
public static int scanForGap(org.agrona.concurrent.UnsafeBuffer termBuffer,
int termId,
int rebuildOffset,
int hwmOffset,
TermGapScanner.GapHandler handler)
TermGapScanner.GapHandler.termBuffer - to be scanned for a gap.termId - of the current term buffer.rebuildOffset - at which to start scanning.hwmOffset - at which to stop scanning.handler - to call if a gap is found.Copyright © 2014 - 2016 Real Logic Ltd. All Rights Reserved.