Package io.camunda.zeebe.logstreams.log
Interface LogStreamBatchWriter
- All Superinterfaces:
LogStreamWriter
- All Known Implementing Classes:
LogStreamBatchWriterImpl
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder to add a log entry to the batch. -
Method Summary
Modifier and TypeMethodDescriptionevent()Returns the builder to add a new log entry to the batch.intvoidreset()Discard all non-written batch data.sourceRecordPosition(long position) Set the source event for all log entries.Methods inherited from interface io.camunda.zeebe.logstreams.log.LogStreamWriter
tryWrite
-
Method Details
-
sourceRecordPosition
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.
-