AppendedEntry

data class AppendedEntry<P>(val entry: JournalEntry<P>, val entryHash: String? = null)

Result of a successful SagaJournal.append call.

Wraps the persisted entry and, when JournalConfig.hashing is Hashing.Sha256, the entryHash computed over the entry's canonical bytes.

Constructors

Link copied to clipboard
constructor(entry: JournalEntry<P>, entryHash: String? = null)

Properties

Link copied to clipboard

The entry that was appended.

Link copied to clipboard

SHA-256 hash of this entry's canonical bytes as a 64-character lowercase hex string, or null when JournalConfig.hashing is Hashing.None. Available from version 2.0.0 (stable public API).