A comunica mediator that goes over all actors in sequence and forwards I/O. This required the action input and the actor output to be of the same type.

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

bus: Bus<A, H, T, H, TS>

The bus this mediator will mediate over.

field: undefined | string
filterFailures: undefined | boolean
name: string

The name for this mediator.

{<rdf:subject>}
order: undefined | "increasing" | "decreasing"

Methods

  • Protected

    Construct a human-friendly failure message that accumulates the given actors's failure messages.

    Parameters

    • action: H

      The action that was executed.

    • actorFailures: string[]

      The failure messages that were collected from actor tests based on the given executed action.

    Returns string

  • 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.

    Parameters

    • action: H

      The action to mediate for.

    Returns Promise<H>

    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.

    Parameters

    • action: H

      The action to mediate for.

    Returns Promise<TestResult<A, TS>>

    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.

    Parameters

    • action: H

      The action to mediate for.

    Returns Promise<TestResult<H, TS>>

    A promise that resolves to the mediation result.