Indexed bus for query operations.

Hierarchy (view full)

Constructors

Properties

actionIdentifierFields: string[]
actorIdentifierFields: string[]
actors: ActorQueryOperation[] = []
actorsIndex: Record<string, ActorQueryOperation[]> = {}
dependencyLinks: Map<ActorQueryOperation, ActorQueryOperation[]> = ...
name: string

The name for this bus.

Default

{<rdf:subject>}

Methods

  • Indicate that the given actor has the given actor dependencies.

    This will ensure that the given actor will be present in the bus before the given dependencies.

    Parameters

    • dependent: ActorQueryOperation

      A dependent actor that will be placed before the given actors.

    • dependencies: ActorQueryOperation[]

      Actor dependencies that will be placed after the given actor.

    Returns void

  • Unsubscribe the given actor from the bus.

    An actor that is subscribed multiple times will be unsubscribed only once.

    Parameters

    Returns boolean

    If the given actor was successfully unsubscribed, otherwise it was not subscribed before.