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,OpenSearchAuditBackend.ESCursorResult
A cursor result which holds a DB cursor and additional information to scroll this DB cursor.
- Since:
 - 9.1
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected Cprotected final intprotected long - 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable
 
 -