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(long, long).-
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 TypeMethodDescriptiondefault voidappendEntry(long lowestPosition, long highestPosition, BufferWriter data, ZeebeLogAppender.AppendListener appendListener) Appends an entry to the local Raft log and schedules replication to each follower.default voidappendEntry(long lowestPosition, long highestPosition, ByteBuffer data, ZeebeLogAppender.AppendListener appendListener) Appends an entry to the local Raft log and schedules replication to each follower.voidappendEntry(ApplicationEntry entry, ZeebeLogAppender.AppendListener appendListener) Appends an entry to the local Raft log and schedules replication to each follower.
-
Method Details
-
appendEntry
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 bufferhighestPosition- highest record position in the data bufferdata- 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 bufferhighestPosition- highest record position in the data bufferdata- data to store in the entry
-