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.

Constructors

Link copied to clipboard
constructor(type: AggregateType, tenantId: String, namespace: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether the keys of this scope are unique across tenants.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String