Class MaterializedView<S, E>

Materialized view is using/delegating a View to handle events of type E and to maintain a state of projection(s) via ViewStateRepository as a result. Essentially, it represents the query/view side of the CQRS pattern.

Author

Иван Дугалић / Ivan Dugalic /

Idugalic

Type Parameters

  • S

    Materialized View state of type S

  • E

    Events of type E that are handled by this Materialized View

Implements

Constructors

Properties

initialState: S
view: IView<S, E>
viewStateRepository: ViewStateRepository<E, S>

Methods

Generated using TypeDoc