Package org.nuxeo.ecm.core.api
Class CursorResult<C,O>
java.lang.Object
org.nuxeo.ecm.core.api.CursorResult<C,O>
- Type Parameters:
C
- The cursor type.O
- The cursor item type.
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterator<O>
- Direct Known Subclasses:
DefaultAuditBackend.SQLAuditCursorResult
,ESAuditBackend.ESCursorResult
A cursor result which holds a DB cursor and additional information to scroll this DB cursor.
- Since:
- 9.1
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
protected C
protected final int
protected long
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
cursor
-
batchSize
protected final int batchSize -
keepAliveSeconds
protected final int keepAliveSeconds -
lastCallTimestamp
protected volatile long lastCallTimestamp
-
-
Constructor Details
-
CursorResult
-
-
Method Details
-
getCursor
-
getBatchSize
public int getBatchSize() -
touch
public void touch() -
timedOut
public boolean timedOut() -
hasNext
public boolean hasNext() -
next
-
close
public void close()CAUTION: if your cursor doesn't implementCloseable
, we just set the field to null- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-