Aggregates

class Aggregates(versions: IntArray, index: Int, of: Int)

The aggregates one worker of a case writes: every of-th of versions' aggregates, by index, taken in turn so a flush holds distinct aggregates. Their versions are the case's (versions, by aggregate), carried from one step to the next, so a later step goes on from the versions an earlier one wrote.

Constructors

Link copied to clipboard
constructor(versions: IntArray, index: Int, of: Int)

Types

Link copied to clipboard
data class Command(val number: Int, val version: Int)

A command of aggregate number number: its id and the version it writes.

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

The next aggregate, at the version it is at.

Link copied to clipboard

The next n aggregates, each moved one version higher.