Interface LogStorage.AppendListener

All Known Implementing Classes:
FlowControl
Enclosing interface:
LogStorage

public static interface LogStorage.AppendListener
An append listener can be added to an append call to be notified of different events that can occur during the append operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    onCommit(long index, long highestPosition)
    Called when the entry has been successfully committed.
    default void
    onWrite(long index, long highestPosition)
    Called when the entry has been successfully written to the local storage.
  • Method Details

    • onWrite

      default void onWrite(long index, long highestPosition)
      Called when the entry has been successfully written to the local storage.
      Parameters:
      index - the index of the written entry
    • onCommit

      default void onCommit(long index, long highestPosition)
      Called when the entry has been successfully committed.
      Parameters:
      index - the index of the committed entry
      highestPosition - the highest position (i.e. last position) of the records within the entry that was committed.