Class ActorAbstractMediaTyped<HI, HT, HO>Abstract

An abstract actor that handles media-typed actions.

It splits up a action between a 'handle' and a 'mediaTypes' action. A 'mediaTypes' action is used to retrieve the available media types from this actor. A 'handle' action is abstract, and can be implemented to do anything, such as parsing, serializing, etc.

  • IActionAbstractMediaTyped
  • ActorAbstractMediaTypedFixed

Type Parameters

  • HI
  • HT
  • HO

Hierarchy (View Summary)

Constructors

Properties

beforeActors: Actor<
    IActionAbstractMediaTyped<HI>,
    IActorTestAbstractMediaTyped<HT>,
    IActorOutputAbstractMediaTyped<HO>,
    undefined,
>[] = []

Actor that must be registered in the bus before this actor.

bus: Bus<
    Actor<
        IActionAbstractMediaTyped<HI>,
        IActorTestAbstractMediaTyped<HT>,
        IActorOutputAbstractMediaTyped<HO>,
        undefined,
    >,
    IActionAbstractMediaTyped<HI>,
    IActorTestAbstractMediaTyped<HT>,
    IActorOutputAbstractMediaTyped<HO>,
    undefined,
>

The bus this actor subscribes to.

name: string

The name for this actor.

{<rdf:subject>}

Methods