An Incremunica actor for source-watch events.

Actor types:

  • Input: IActionSourceWatch: The url and metadata of the source to watch.
  • Test: IActionSourceWatch: The url and metadata of the source to watch.
  • Output: IActorSourceWatchOutput: start and stop functions for the source watch, and an event emitter for 'update' and 'delete' events.
  • IActionSourceWatch
  • IActorSourceWatchOutput

Type Parameters

  • TS = undefined

Hierarchy (View Summary)

Constructors

Properties

beforeActors: Actor<IActionSourceWatch, IActorTest, IActorSourceWatchOutput, TS>[]

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

bus: Bus<
    Actor<IActionSourceWatch, IActorTest, IActorSourceWatchOutput, TS>,
    IActionSourceWatch,
    IActorTest,
    IActorSourceWatchOutput,
    TS,
>

The bus this actor subscribes to.

name: string

The name for this actor.

{<rdf:subject>}
priority: number

Methods

  • Parameters

    • context: IActionContext
    • Optionaldata: () => any

    Returns any

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Run the given action on this actor.

    In most cases, this method should not be called directly. Instead, #runObservable should be called.

    Parameters

    Returns Promise<IActorSourceWatchOutput>

    A promise that resolves to the run result.

  • Check if this actor can run the given action, without actually running it.

    Parameters

    Returns Promise<TestResult<IActorTest, TS>>

    A promise that resolves to the test result.

  • Get the logger from the given context.

    Parameters

    • context: IActionContext

      An optional context.

    Returns undefined | Logger

    The logger or undefined.