Interface LogStreamBatchWriter

All Superinterfaces:
LogStreamWriter
All Known Implementing Classes:
LogStreamBatchWriterImpl

public interface LogStreamBatchWriter extends LogStreamWriter
Write log entries to the log stream write buffer as batch. This ensures that the log entries are written atomically.

Note that the log entry data is buffered until LogStreamWriter.tryWrite() is called.

  • Method Details

    • sourceRecordPosition

      LogStreamBatchWriter sourceRecordPosition(long position)
      Set the source event for all log entries.
    • event

      Returns the builder to add a new log entry to the batch.
    • getMaxFragmentLength

      int getMaxFragmentLength()
    • reset

      void reset()
      Discard all non-written batch data.