Class StateOrchestratingComputation<C, S, E>Abstract

StateOrchestratingComputation abstracts the Orchestrating State Computation algorithm by using a decider of type IDecider<C, S, E> and saga of type ISaga<E, C> to handle commands based on the current state, and produce new state. If the decider is combined out of many deciders via combine function, a saga could be used to react on new events and send new commands to the decider recursively, in single transaction.

Type Parameters

  • C

    Commands of type C

  • S

    State of type S

  • E

    Events of type E





decider: IDecider<C, S, E>
initialState: S
saga: ISaga<E, C>


Generated using TypeDoc