Interface LogStreamWriter

All Known Subinterfaces:
LogStreamBatchWriter, LogStreamRecordWriter
All Known Implementing Classes:
LogStreamBatchWriterImpl, LogStreamWriterImpl

public interface LogStreamWriter
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    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