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 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. -
current
LoggedEvent current()- Returns:
- the current head of the batch without moving to the next event.
-