Package io.camunda.zeebe.logstreams.log
Interface LogStreamWriter
- All Known Subinterfaces:
LogStreamBatchWriter,LogStreamRecordWriter
- All Known Implementing Classes:
LogStreamBatchWriterImpl,LogStreamWriterImpl
public interface LogStreamWriter
-
Method Summary
Modifier and TypeMethodDescriptionlongtryWrite()Attempts to write the event to the underlying stream.
-
Method Details
-
tryWrite
long tryWrite()Attempts to write the event to the underlying stream.- Returns:
- the event position or a negative value if fails to write the event
-