RoutedStateReducer0
org.sigilaris.core.application.module.blueprint.RoutedStateReducer0
Routed state reducer requiring ModuleRoutedTx.
This is a wrapper that implements StateReducer0 but only works correctly with transactions that implement ModuleRoutedTx. It is used in composed blueprints where routing based on module path is required.
The user is expected to only pass ModuleRoutedTx transactions to composed blueprints. Non-routed transactions will fail at runtime with a cast exception, which is acceptable since the API contract (composition) requires routing.
Phase 5.5 update: Like StateReducer0, now explicitly models Owns and Needs.
Type parameters
- F
-
the effect type
- Needs
-
the needed schema tuple (tuple of Entry types)
- Owns
-
the owned schema tuple (tuple of Entry types)
Attributes
- Source
- Blueprint.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article