Package-level declarations
Types
A real read side for a processor spec (ProcessorSpec.givenQueries): the query engine of the Manifest the modules on the class path declare, over snapshots held in memory. A handler's reads run as on a node: the filters, the scope and tenant policies and the budgets apply, and the snapshots decode as the aggregates' state classes.
Functions
Serves the handlers' reads from a memoryQueries holding states, each an aggregate id to its state, as snapshots of type in tenantId. It replaces the queries given before: a spec that reads several types gives one memoryQueries.
Serves the handlers' reads from a memoryQueries holding the snapshot of the aggregate id of model in tenantId, in the state events leave it in (MemoryQueries.snapshot). It replaces the queries given before: a spec that reads several aggregates gives one memoryQueries.
The read side of the modules on the class path (MemoryQueries.of), with the snapshots block gives: memoryQueries { snapshots(Stock.TYPE, "mug" to Stock(7)) }.