@API(value=EXPERIMENTAL) public class IllegalContinuationAccessChecker extends Object
RecordCursor.getContinuation()
is only called when allowed.
getContinuation
is only legal after hasNext
has returned false
or after next
.
The check can be enabled / disabled globally.Modifier and Type | Method and Description |
---|---|
static void |
check(boolean mayGetContinuation) |
static boolean |
getShouldCheckContinuationAccess() |
static void |
setShouldCheckContinuationAccess(boolean shouldCheckContinuationAccess) |