class SchedulerRegistry {
doesExists: this.doesExist
doesExist(type: "cron" | "timeout" | "interval", name: string)
getCronJob(name: string)
getInterval(name: string)
getTimeout(name: string)
addCronJob(name: string, job: CronJob)
addInterval<T = any>(name: string, intervalId: T)
addTimeout<T = any>(name: string, timeoutId: T)
getCronJobs(): Map<string, CronJob>
deleteCronJob(name: string)
getIntervals(): string[]
deleteInterval(name: string)
getTimeouts(): string[]
deleteTimeout(name: string)
}
Properties
Property |
Description |
doesExists: this.doesExist
|
|
Methods
doesExist()
|
doesExist(type: "cron" | "timeout" | "interval", name: string)
Parameters
Option |
Type |
Description |
type
|
"cron" | "timeout" | "interval" |
|
name
|
string |
|
|
getCronJob()
|
getCronJob(name: string)
Parameters
Option |
Type |
Description |
name
|
string |
|
|
getInterval()
|
getInterval(name: string)
Parameters
Option |
Type |
Description |
name
|
string |
|
|
getTimeout()
|
getTimeout(name: string)
Parameters
Option |
Type |
Description |
name
|
string |
|
|
addCronJob()
|
addCronJob(name: string, job: CronJob)
Parameters
Option |
Type |
Description |
name
|
string |
|
job
|
CronJob |
|
|
addInterval()
|
addInterval<T = any>(name: string, intervalId: T)
Parameters
Option |
Type |
Description |
name
|
string |
|
intervalId
|
T |
|
|
addTimeout()
|
addTimeout<T = any>(name: string, timeoutId: T)
Parameters
Option |
Type |
Description |
name
|
string |
|
timeoutId
|
T |
|
|
getCronJobs()
|
getCronJobs(): Map<string, CronJob>
Parameters
There are no parameters.
Returns
Map<string, CronJob>
|
deleteCronJob()
|
deleteCronJob(name: string)
Parameters
Option |
Type |
Description |
name
|
string |
|
|
getIntervals()
|
getIntervals(): string[]
Parameters
There are no parameters.
Returns
string[]
|
deleteInterval()
|
deleteInterval(name: string)
Parameters
Option |
Type |
Description |
name
|
string |
|
|
getTimeouts()
|
getTimeouts(): string[]
Parameters
There are no parameters.
Returns
string[]
|
deleteTimeout()
|
deleteTimeout(name: string)
Parameters
Option |
Type |
Description |
name
|
string |
|
|