Interface ZeebeLogAppender

All Known Implementing Classes:
LeaderRole
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ZeebeLogAppender
A log appender provides a central entry point to append to the local Raft log such that it is automatically replicated and eventually committed, and the ability for callers to be notified of various events, e.g. ZeebeLogAppender.AppendListener.onCommit(IndexedRaftLogEntry).
  • Method Details

    • appendEntry

      void appendEntry(ApplicationEntry entry, ZeebeLogAppender.AppendListener appendListener)
      Appends an entry to the local Raft log and schedules replication to each follower.
    • appendEntry

      default void appendEntry(long lowestPosition, long highestPosition, ByteBuffer data, ZeebeLogAppender.AppendListener appendListener)
      Appends an entry to the local Raft log and schedules replication to each follower.
      Parameters:
      lowestPosition - lowest record position in the data buffer
      highestPosition - highest record position in the data buffer
      data - data to store in the entry
    • appendEntry

      default void appendEntry(long lowestPosition, long highestPosition, BufferWriter data, ZeebeLogAppender.AppendListener appendListener)
      Appends an entry to the local Raft log and schedules replication to each follower.
      Parameters:
      lowestPosition - lowest record position in the data buffer
      highestPosition - highest record position in the data buffer
      data - data to store in the entry