/** * * Define and control schedules * * - reschedule calculation adapter * -- cron * * * - schedule execution adapter * -- for event firing * -- for task execution * * configurable * * schedules: * - cron: '* * * * *' * event: * name: ActionEvent | action_event * params: * ... * - offset: 10000 * start: Date | Time * event: * name: ActionEvent | action_event * params: * ... * - offset: 10000 * start: Date | Time * task: * name: ActionTask | action_task * params: * ... * */ import { Schedule } from './Schedule'; import { IScheduleFactory } from './IScheduleFactory'; import { IScheduleDef } from './IScheduleDef'; export declare class Scheduler { static NAME: string; private factories; private schedules; prepare(factories: IScheduleFactory[]): Promise; register(schedule: IScheduleDef): Promise; /** * TODO */ get(): void; /** * TODO */ unregister(): void; shutdown(): Promise; }