Abstract
The type of actor to mediator over.
The input type of an actor.
The test type of an actor.
The output type of an actor.
Protected
constructorAll enumerable properties from the args
object are inherited to this mediator.
Arguments object
When required arguments are missing.
Readonly
busThe bus this mediator will mediate over.
Readonly
nameThe name for this mediator.
{<rdf:subject>}
Mediate for the given action.
This will send the test action on all actors in the bus. The action will be run on the actor that tests best, of which the result will be returned.
The action to mediate for.
A promise that resolves to the mediation result.
Protected
Abstract
mediateMediate for the given action with the given actor test results for the action.
One actor must be returned that provided the best test result. How 'best' is interpreted, depends on the implementation of the Mediator.
A promise that resolves to the best actor.
Generated using TypeDoc
A mediator can mediate an action over a bus of actors.
It does the following:
The mediates and best parts are filled in by subclasses of this abstract Mediator class.