Class DefaultAuditBackend.SQLAuditCursorResult
- java.lang.Object
-
- org.nuxeo.ecm.core.api.CursorResult<Iterator<LogEntry>,LogEntry>
-
- org.nuxeo.ecm.platform.audit.service.DefaultAuditBackend.SQLAuditCursorResult
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterator<LogEntry>
- Enclosing class:
- DefaultAuditBackend
public class DefaultAuditBackend.SQLAuditCursorResult extends CursorResult<Iterator<LogEntry>,LogEntry>
-
-
Field Summary
Fields Modifier and Type Field Description protected QueryBuilder
builder
protected boolean
end
protected long
pageNb
-
Fields inherited from class org.nuxeo.ecm.core.api.CursorResult
batchSize, cursor, keepAliveSeconds, lastCallTimestamp
-
-
Constructor Summary
Constructors Constructor Description SQLAuditCursorResult(QueryBuilder builder, int batchSize, int keepAliveSeconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
CAUTION: if your cursor doesn't implementCloseable
, we just set the field to nullboolean
hasNext()
LogEntry
next()
protected void
runNextPage()
-
Methods inherited from class org.nuxeo.ecm.core.api.CursorResult
getBatchSize, getCursor, timedOut, touch
-
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 Detail
-
builder
protected final QueryBuilder builder
-
pageNb
protected long pageNb
-
end
protected boolean end
-
-
Constructor Detail
-
SQLAuditCursorResult
public SQLAuditCursorResult(QueryBuilder builder, int batchSize, int keepAliveSeconds)
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public LogEntry next()
-
runNextPage
protected void runNextPage()
-
close
public void close()
Description copied from class:CursorResult
CAUTION: if your cursor doesn't implementCloseable
, we just set the field to null- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classCursorResult<Iterator<LogEntry>,LogEntry>
-
-