ReadModels

The classes of the node's aggregate models (the kernel's AggregateModels, which :query does not see): each aggregate type's state class and its events' classes by name, so the typed me.ahoo.wow.api.read.QueryApi finds a type by its state class and decodes rows as the model's classes.

Constructors

Link copied to clipboard
constructor(models: Collection<ReadModels.Model>)

Types

Link copied to clipboard
Link copied to clipboard
class Model(val type: AggregateType, val stateType: Class<*>, val events: (String) -> Class<*>? = { null })

One aggregate type's stateType and the class of each of its events by its current name, null for none.

Functions

Link copied to clipboard
fun eventTypeOf(type: AggregateType, name: String): Class<*>?

The class of type's event name, or null when its model has none of that name.

Link copied to clipboard

The state class of type, or null when the node has no model of it.

Link copied to clipboard
fun typeOf(stateType: Class<*>): AggregateType

The aggregate type whose state is of stateType, or that the StateView stateType names: a view of the state another context's api generates, which reads it whether this node or a peer serves it.