Journal Entry
An immutable record of a single event within a saga run.
JournalEntry is a transport record (not a domain entity). All fields are set at append time and never mutated.
ByteArray payload caveat: if P = ByteArray, Kotlin's data class equals / hashCode compares by reference, not by content. Wrap ByteArray in a value class or use List<Byte> if structural equality is required.
Parameters
Payload type stored by this journal instance.
Constructors
Properties
Wall-clock epoch millis at append time. Advisory only — seq is the authoritative ordering within a run.
Lifecycle phase — see EntryPhase.
For EntryPhase.Compensation entries: the seq of the EntryPhase.Effect entry being undone. null for all other phases.
The saga step this entry relates to, or null for EntryPhase.Started / EntryPhase.Terminal entries.