Companion

object Companion

Functions

Link copied to clipboard
fun derivedId(execution: ExecutionId, target: AggregateRef, commandType: Class<*>, requestId: String? = null, eventIndex: Int? = null): String

The id, and request id, of the command to target of commandType derived by execution: a name-based UUID of the execution, the target (its id, AggregateRef.UNASSIGNED for a creation that leaves it to admission), the command type and what tells it from the execution's others (DerivedRequests), stable across every execution of the same commit by the same subscription, whatever else the handler derives:

Link copied to clipboard
fun scheduleId(execution: ExecutionId, ref: AggregateRef, commandType: Class<*>, key: String, occurrence: Int = 0): String

The id, and request id, of the occurrence-th schedule command (from 0) of commandType, wow.schedule.SetSchedule (me.ahoo.wow.api.schedule.SetSchedule) or wow.schedule.CancelSchedule, to ref for the schedule key derived by execution: keyed by the schedule's key, whatever other schedules the execution sets or cancels and in whatever order.