typeOf

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.

Throws

when no model has, or several models share, that state class.