prepare

fun prepare(aggregateId: String, expectedVersion: Long?, commandId: CommandId, correlationId: CorrelationId? = null, causedBy: EventReference? = null, occurredAt: Instant, events: List<ProposedEvent<EVENT>>, appendKey: AppendKey = AppendKey(Uuid.random().toString())): PreparedAppend<EVENT>(source)

Prepares a non-empty atomic append. A null expectedVersion means the stream must not exist. The default framework-generated appendKey needs no caller input.