Preparing search index...
The search index is not available
@elara-services/cron
@elara-services/cron
CronClient
Class CronClient
Hierarchy
CronClient
Index
Constructors
constructor
Properties
crons
debug
time
Zone
Methods
#debug
add
get
list
remove
remove
All
Constructors
constructor
new
Cron
Client
(
timeZone
?
,
debug
?
)
:
CronClient
Parameters
timeZone
:
string
= defTimeZone
debug
:
boolean
= false
Returns
CronClient
Properties
Private
crons
crons
:
Map
<
string
,
CronJob
<
null
,
null
>
>
= ...
Private
debug
debug
:
boolean
= false
time
Zone
time
Zone
:
string
= defTimeZone
Methods
Private
#debug
#debug
(
...
args
)
:
void
Parameters
Rest
...
args
:
unknown
[]
Returns
void
add
add
(
options
)
:
CronClient
Parameters
options
:
{
name
:
string
;
onStartup
?:
boolean
;
run
:
(
(
)
=>
unknown
)
;
time
:
string
|
Date
|
DateTime
<
boolean
>
;
timeZone
?:
string
;
}
name
:
string
Optional
on
Startup
?:
boolean
run
:
(
(
)
=>
unknown
)
(
)
:
unknown
Returns
unknown
time
:
string
|
Date
|
DateTime
<
boolean
>
Optional
time
Zone
?:
string
Returns
CronClient
get
get
(
name
)
:
null
|
CronJob
<
null
,
null
>
Parameters
name
:
string
Returns
null
|
CronJob
<
null
,
null
>
list
list
(
)
:
{
job
:
CronJob
<
null
,
null
>
;
name
:
string
;
}
[]
Returns
{
job
:
CronJob
<
null
,
null
>
;
name
:
string
;
}
[]
remove
remove
(
name
)
:
CronClient
Parameters
name
:
string
Returns
CronClient
remove
All
remove
All
(
)
:
boolean
Returns
boolean
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
crons
debug
time
Zone
#debug
add
get
list
remove
remove
All
@elara-
services/cron
Cron
Client
def
Time
Zone
Generated using
TypeDoc