Package-level declarations

Types

Link copied to clipboard
sealed interface AggregateEventReadResult<out EVENT>

Result of reading an aggregate stream.

Link copied to clipboard

Read/write event store for one aggregate type.

Link copied to clipboard

Reads ordered event history from aggregate streams.

Link copied to clipboard

Writes prepared appends atomically to aggregate streams.

Link copied to clipboard
value class AppendKey(val value: String)

Framework-owned input to stable event-ID generation for one prepared append.

Link copied to clipboard
sealed interface AppendResult<out EVENT>

Result of atomically submitting a PreparedAppend.

Link copied to clipboard
data class CommittedEvent<out EVENT>(val eventId: Uuid, val aggregateType: String, val aggregateId: String, val version: Long, val commandId: CommandId, val correlationId: CorrelationId?, val causedBy: EventReference?, val occurredAt: Instant, val preparedAt: Instant, val event: EVENT) : HasAggregateVersion

A canonical event committed to an aggregate stream. version is local to that aggregate; subscription checkpoints provide the global or physical resume position.

Link copied to clipboard
class EventAppendPreparer<EVENT : Any, EVENT_PERSISTED : Any>(aggregateTypes: EventTypeNames.ForAggregate<EVENT>, codec: Codec<EVENT, EVENT_PERSISTED>, clock: Clock = Clock.System)

Converts proposed domain events into immutable, persistence-ready appends with framework-owned stable event IDs. Normal users provide commands and receive committed events; this internal boundary creates the recovery unit needed only when persistence has an ambiguous outcome.

Link copied to clipboard

An immutable append prepared for one aggregate stream and expected version.

Link copied to clipboard

Durable exact-recovery representation. Payloads are retained verbatim, never re-encoded.

Link copied to clipboard
class PreparedEvent<out EVENT>

An immutable event prepared for persistence, including its stable identity, bytes, and metadata.

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun validateAggregateAppend(preparedAppend: PreparedAppend<*>)