C - The cursor type.O - The cursor item type.public class CursorResult<C,O> extends Object implements Iterator<O>, Closeable
| Modifier and Type | Field and Description |
|---|---|
protected int |
batchSize |
protected C |
cursor |
protected int |
keepAliveSeconds |
protected long |
lastCallTimestamp |
| Constructor and Description |
|---|
CursorResult(C cursor,
int batchSize,
int keepAliveSeconds) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
CAUTION: if your cursor doesn't implement
Closeable, we just set the field to null |
int |
getBatchSize() |
C |
getCursor() |
boolean |
hasNext() |
O |
next() |
boolean |
timedOut() |
void |
touch() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removeprotected final int batchSize
protected final int keepAliveSeconds
protected long lastCallTimestamp
public CursorResult(C cursor, int batchSize, int keepAliveSeconds)
public int getBatchSize()
public void touch()
public boolean timedOut()
Copyright © 2019 Nuxeo. All rights reserved.