CommittedRequests

The streams already committed for a request, and the claims of creations not committed yet: what admission reads before it gives a creation command without an id one. None of its members has a default and it is no fun interface, so that a lambda cannot stand for it: one that looked requests up and kept its claims to itself left the node's own gateway drawing a new id for every attempt (#6518). Build one with of.

Types

Link copied to clipboard

Functions

Link copied to clipboard
abstract suspend fun claim(type: AggregateType, tenantId: String, requestId: String, claim: CreationClaim): CreationClaim

The claim of the aggregate the creation of requestId targets: claim when the request has none, else its first (EventLog.claimCreation).

Link copied to clipboard
abstract suspend fun find(type: AggregateType, tenantId: String, requestId: String): EventStreamRecord?

The stream committed for requestId within tenantId in aggregate type type, if any.

Link copied to clipboard
abstract fun partitions(type: AggregateType): Int

The partitions of the log of type: 1 for a type without one.