AggregateEventStoreInMemory

Constructors

Link copied to clipboard
constructor(eventTypes: EventTypeNames.ForAggregate<EVENT>, codec: Codec<EVENT, EVENT_PERSISTED>, storage: InMemoryEventStorage = InMemoryEventStorage())

Properties

Link copied to clipboard
open override val aggregateType: String
Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun append(preparedAppend: PreparedAppend<EVENT>): AppendResult<EVENT>

Appends preparedAppend. Resubmitting the same append is safe and produces the same committed event range. This exact retry is intended for ambiguous outcomes; preparing new events or handling the command again is a distinct attempt and does not have this guarantee.

Link copied to clipboard
open suspend override fun readAggregateEvents(aggregateId: String, afterVersion: Long? = null, maxCount: Long? = null): AggregateEventReadResult<EVENT>

Reads committed events for aggregateId strictly after afterVersion, optionally limited by maxCount.