Class LogStreamBatchReaderImpl
java.lang.Object
io.camunda.zeebe.logstreams.impl.log.LogStreamBatchReaderImpl
- All Implemented Interfaces:
LogStreamBatchReader,CloseableSilently,AutoCloseable,Iterator<LogStreamBatchReader.Batch>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.logstreams.log.LogStreamBatchReader
LogStreamBatchReader.Batch -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanhasNext()next()booleanseekToNextBatch(long position) Seeks to the next batch after the given position.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
-
Constructor Details
-
LogStreamBatchReaderImpl
-
-
Method Details
-
seekToNextBatch
public boolean seekToNextBatch(long position) Description copied from interface:LogStreamBatchReaderSeeks to the next batch after the given position. If the position is negative then it seeks to the first event.- Specified by:
seekToNextBatchin interfaceLogStreamBatchReader- Parameters:
position- the position to seek for the next event- Returns:
true, if the given position exists, or if it is negative
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<LogStreamBatchReader.Batch>
-
next
- Specified by:
nextin interfaceIterator<LogStreamBatchReader.Batch>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableSilently
-