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 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.