Interface IJobDispatcher<T, U>

The Job Dispatcher interface.

interface IJobDispatcher<T, U> {
    close(): void;
    createJob(job: IJobRequest<T>): Promise<Observable<JobResponse<U>>>;
    getJob(id: string): IJobRequest<T>;
    getJobs(): IJobRequest<T>[];
    getName(): string;
    getOwnerId(): string;
}

Type Parameters

Hierarchy (view full)

Methods

  • Close the Job Dispatcher.

    Returns void

  • Get a job by ID.

    Parameters

    • id: string

      The ID of the job to get.

    Returns IJobRequest<T>

    The job.

  • Get the name of the stream.

    Returns string

    The name of the stream.

  • Get the owner ID of the stream.

    Returns string

    The owner ID of the stream.