Improve concurrence of ProjectionSnapshotRepositoryInMemory and GameEventHandler
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user