Options
All
  • Public
  • Public/Protected
  • All
Menu

The WorkerClient class is extended by Service implementations to allow queueing of incoming events. It allows the use of generic contexts, to suit the service using it.

Type parameters

  • T

Hierarchy

Index

Properties

Protected getWorker

getWorker: function

This generic method must be implemented in children extended from a ProcBot. It defines the context type used for Workers.

param

The WorkerEvent to retrieve a valid Worker for.

returns

Returns a Worker that should be used to process the event.

Type declaration

Protected workers

workers: WorkerMap<T> = new Map<T, Worker<T>>()

Methods

Protected queueEvent

Protected removeWorker

  • removeWorker(context: T): void
  • Remove a worker from a context post-action.

    Parameters

    • context: T

      The context in which the Worker must be removed.

    Returns void

Generated using TypeDoc