Improve concurrence of ProjectionSnapshotRepositoryInMemory and GameEventHandler

This commit is contained in:
2025-03-13 23:57:20 +01:00
parent 286dedac76
commit 91767e3747
21 changed files with 358 additions and 154 deletions

View File

@@ -23,4 +23,9 @@ interface EventStream<E : Event<ID>, ID : AggregateId> {
/** Reads all events associated with a given aggregate ID */
fun readAll(aggregateId: ID): Set<E>
fun readGreaterOfVersion(
aggregateId: ID,
version: Int,
): Set<E>
}