Package io.camunda.zeebe.logstreams.log
Interface LogStreamBatchReader.Batch
- All Superinterfaces:
Iterator<LoggedEvent>
- Enclosing interface:
- LogStreamBatchReader
A batch of events that share the same source record position. Events with no source event
position are in a singleton batch.
while (batch.hasNext()) {
final LoggedEvent event = batch.next();
// ...
}
-
Method Summary
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Method Details
-
head
void head()Move to the head of the batch. Reads the first event of the batch next. Can be used to read the whole batch again.
-