AggregateEventStoreInMemory
class AggregateEventStoreInMemory<EVENT : Any, EVENT_PERSISTED : Any>(eventTypes: EventTypeNames.ForAggregate<EVENT>, codec: Codec<EVENT, EVENT_PERSISTED>, val storage: InMemoryEventStorage = InMemoryEventStorage()) : AggregateEventStore<EVENT> (source)
Constructors
Link copied to clipboard
constructor(eventTypes: EventTypeNames.ForAggregate<EVENT>, codec: Codec<EVENT, EVENT_PERSISTED>, storage: InMemoryEventStorage = InMemoryEventStorage())
Functions
Link copied to clipboard
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.