ReservationScope
class ReservationScope @InternalWowApi constructor(val type: AggregateType, val tenantId: String, val namespace: String)
Where a reserved key is unique: the aggregate type of its owners (within the type, not the bounded context), the tenantId (axiom A6: every unique key includes the tenant) and the namespace, such as user.name. A key unique across the type's tenants has the tenant SYSTEM_TENANT, which no aggregate's tenant ever is. The scope names the type, not only its owner, because some reads have no owner: ReservationStore.find looks a key up.
Fields may be added: construct one with of; the constructor is internal to Wow.
Properties
Functions
Link copied to clipboard
fun copyWith(type: AggregateType = this.type, tenantId: String = this.tenantId, namespace: String = this.namespace): ReservationScope
This ReservationScope with the given fields replaced: Wow's own copy, left out of the ABI.