Public constructor consuming the handle
Model queries should
be committed through, and an dynamic or static prioritize
value.
The prioritize
value may either be a mapping of Models to
corresponding priorities or a static priority for this Querier.
Static
Readonly
[provide]Magic string by which this class is provided.
Readonly
typesA set containing the Querier.Types this BusQuerier handles.
As a Bus is a long-lived duplex stream, this Querier can
handle 'mutation'
, 'query'
and 'subscription'
types.
Private
Readonly
handleThe Bus.Handle to commit queries under.
Private
Readonly
prioritizeThe dynamic or static prioritization.
Overridden commit method of the Querier base class. When this Querier is made available via the Linker, this overridden commit method is called when this Querier claims the highest priority to commit an Querier.Operation, depending on the Model from which the Querier.Operation originates.
The Querier.Operation to be committed.
Any Querier.Variables within the operation
.
An Observable of the committed operation
.
Overridden priority method of the Querier base class. When an
Querier.Operation is to be committed, this method is called
with the respective model
Model.Type and returns the claimed
priority to commit this Model.
The numeric priority of this Querier implementation.
Generated using TypeDoc
The BusQuerier implements an Bus based Querier, i.e., extension of the abstract Querier base class, allowing Model queries to be executed via a Bus. To use this class, provide it to the Linker by either extending it, and decorating the extending class with the Target decorator, or by preemptively supplying an instance of this class to the Linker.
Example
Provide the BusQuerier to the Linker:
See