Interface LogStorage.CommitListener

All Known Implementing Classes:
LogStreamImpl
Enclosing interface:
LogStorage

public static interface LogStorage.CommitListener
Consumers of LogStorage can use this listener to get notified when new records are committed. The difference between this and LogStorage.AppendListener is that LogStorage.AppendListener can only be used by the writer of a record. LogStorage.CommitListener can be used by any consumers of LogStorage, and get notified of new records committed even if it did not write the record itself.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when a new record is committed in the storage
  • Method Details

    • onCommit

      void onCommit()
      Called when a new record is committed in the storage