Interface ZeebeLogAppender.AppendListener

Enclosing interface:
ZeebeLogAppender

public static interface ZeebeLogAppender.AppendListener
An append listener can observe and be notified of different events related to the append operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called when the entry has been committed.
    default void
    Called when an error occurred while replicating or committing an entry, typically when if an append operation was pending when shutting down the server or stepping down as leader.
    default void
    Called when the entry has been written to the log.
    default void
    Called when an error occurred while writing the entry to the log.
  • Method Details

    • onWrite

      default void onWrite(IndexedRaftLogEntry indexed)
      Called when the entry has been written to the log.
      Parameters:
      indexed - the entry that was written to the log
    • onWriteError

      default void onWriteError(Throwable error)
      Called when an error occurred while writing the entry to the log.
      Parameters:
      error - the error that occurred
    • onCommit

      default void onCommit(IndexedRaftLogEntry indexed)
      Called when the entry has been committed.
      Parameters:
      indexed - the entry that was committed
    • onCommitError

      default void onCommitError(IndexedRaftLogEntry indexed, Throwable error)
      Called when an error occurred while replicating or committing an entry, typically when if an append operation was pending when shutting down the server or stepping down as leader.
      Parameters:
      indexed - the entry that should have been committed
      error - the error that occurred