Readonly
busThe bus this mediator will mediate over.
Readonly
cpuReadonly
ioReadonly
memoryReadonly
nameThe name for this mediator.
Readonly
timeProtected
constructProtected
Construct a human-friendly failure message that accumulates the given actors's failure messages.
The action that was executed.
The failure messages that were collected from actor tests based on the given executed action.
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.
Mediate for the given action to get an actor.
This will send the test action on all actors in the bus. The actor that tests best will be returned.
The action to mediate for.
A promise that resolves to the best actor.
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
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.
The action to mediate for.
The actor test results for the action.
A promise that resolves to the best actor.
Publish the given action in the bus.
This will send the test action on all actors in the bus. All actor replies will be returned.
The action to mediate for.
The list of actor replies.
Protected
Static
get
A mediator that mediates over actors implementing the Join Coefficients mediator type and assigns fixed weights to calculate an overall score and pick the actor with the lowest score.