AggregateIdGenerator
Generates the id of a new aggregate of a type: the id admission gives a creating command that names none, the target of a transformed command left without one, and Ids.next of a type in domain code. One generator may serve every type or one type; a host selects one per type (AggregateIdGenerator.of).
Functions
A new id of type whose aggregate in tenantId, type.ref(tenantId, id), falls in partition of a log of partitions (Partitioner.partitionOf), or null when this generator cannot aim at a partition. Admission asks it for a creation that names no id, aimed at its request's partition (Partitioner.partitionOfRequest): every attempt of the request then meets the others at the log's request key, and nothing is claimed. Given null, it claims the id next gives for the request instead (me.ahoo.wow.spi.log.EventLog.claimCreation): a round trip more on a log whose request key is narrower than the type.