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).
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    An append listener can observe and be notified of different events related to the append operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • Method Details

    • appendEntry

      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