public class TermGapScanner
extends java.lang.Object
Note: This class is threadsafe to be used across multiple threads.
| 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 termOffset,
int limitOffset,
TermGapScanner.GapHandler handler)
Scan for gaps from the scanOffset up to a limit offset.
|
public static int scanForGap(org.agrona.concurrent.UnsafeBuffer termBuffer,
int termId,
int termOffset,
int limitOffset,
TermGapScanner.GapHandler handler)
TermGapScanner.GapHandler.termBuffer - to be scanned for a gap.termId - of the current term buffer.termOffset - at which to start scanning.limitOffset - at which to stop scanning.handler - to call if a gap is found.Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.