Package io.atomix.raft.zeebe
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.
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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceAn append listener can observe and be notified of different events related to the append operation. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendEntry(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 bufferhighestPosition- highest record position in the data bufferdata- data to store in the entry
-