Interface LogStreamBatchReader.Batch

All Superinterfaces:
Iterator<LoggedEvent>
Enclosing interface:
LogStreamBatchReader

public static interface LogStreamBatchReader.Batch extends Iterator<LoggedEvent>
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

    Modifier and Type
    Method
    Description
    void
    Move to the head of the batch.

    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.