Search
Preparing search index...
The search index is not available
workestrator
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"worker/Worker"
Worker
Class Worker
Hierarchy
EventEmitter
Worker
Index
Constructors
constructor
Properties
debug
fork
Options
id
idle
Timer
kill
Timeout
killed
killing
loaded
max
Concurrent
Calls
max
Idle
Time
module
pending
Calls
process
serializer
serializer
Path
ttl
default
Max
Listeners
Accessors
connected
Methods
add
Listener
emit
event
Names
get
Max
Listeners
init
is
Available
kill
listen
listener
Count
listeners
load
Module
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Listener
reset
Idle
Timer
run
set
Max
Listeners
listener
Count
Constructors
constructor
new
Worker
(
killTimeout
:
number
, module
:
string
, forkOptions
:
ForkOptions
, ttl
:
number
, maxConcurrentCalls
:
number
, maxIdleTime
:
number
, serializer
:
Serializer
, serializerPath
:
string
, id
:
number
, farmId
:
number
)
:
Worker
Parameters
killTimeout:
number
module:
string
forkOptions:
ForkOptions
ttl:
number
maxConcurrentCalls:
number
maxIdleTime:
number
serializer:
Serializer
serializerPath:
string
id:
number
farmId:
number
Returns
Worker
Properties
Private
debug
debug
:
logger.IDebugger
Private
fork
Options
fork
Options
:
ForkOptions
id
id
:
number
Private
idle
Timer
idle
Timer
:
Timer
Private
kill
Timeout
kill
Timeout
:
number
killed
killed
:
boolean
= false
Private
killing
killing
:
boolean
= false
Private
loaded
loaded
:
boolean
= false
Private
max
Concurrent
Calls
max
Concurrent
Calls
:
number
Private
max
Idle
Time
max
Idle
Time
:
number
Private
module
module
:
string
pending
Calls
pending
Calls
:
number
= 0
process
process
:
ChildProcess
Private
serializer
serializer
:
Serializer
Private
serializer
Path
serializer
Path
:
string
Private
ttl
ttl
:
number
Static
default
Max
Listeners
default
Max
Listeners
:
number
Accessors
connected
get
connected
(
)
:
boolean
Returns
boolean
Methods
add
Listener
add
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
event
Names
event
Names
(
)
:
Array
<
string
|
symbol
>
Returns
Array
<
string
|
symbol
>
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
Private
init
init
(
)
:
void
Returns
void
is
Available
is
Available
(
)
:
boolean
Returns
boolean
kill
kill
(
signal
?:
string
)
:
void
Parameters
Default value
signal:
string
= "SIGINT"
Returns
void
Private
listen
listen
(
)
:
void
Returns
void
listener
Count
listener
Count
(
type
:
string
|
symbol
)
:
number
Parameters
type:
string
|
symbol
Returns
number
listeners
listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
Private
load
Module
load
Module
(
)
:
void
Returns
void
off
off
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
on
on
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
once
once
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Listener
prepend
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
raw
Listeners
raw
Listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
this
Parameters
Optional
event:
string
|
symbol
Returns
this
remove
Listener
remove
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
Private
reset
Idle
Timer
reset
Idle
Timer
(
)
:
void
Returns
void
run
run
(
call
:
Call
)
:
boolean
Parameters
call:
Call
Returns
boolean
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
this
Parameters
n:
number
Returns
this
Static
listener
Count
listener
Count
(
emitter
:
EventEmitter
, event
:
string
|
symbol
)
:
number
deprecated
since v4.0.0
Parameters
emitter:
EventEmitter
event:
string
|
symbol
Returns
number
Globals
"
Call"
"
Call
Max
Retry
Error"
"
Farm"
"
Max
Concurrent
Calls
Error"
"
Timeout
Error"
"
Worker
Terminated
Error"
"index"
"types"
"utils"
"worker/
Worker"
"worker/executor"
"worker/serializer/CBOR"
"worker/serializer/JSON"
"worker/serializer/
Serializer"
Worker
constructor
debug
fork
Options
id
idle
Timer
kill
Timeout
killed
killing
loaded
max
Concurrent
Calls
max
Idle
Time
module
pending
Calls
process
serializer
serializer
Path
ttl
default
Max
Listeners
connected
add
Listener
emit
event
Names
get
Max
Listeners
init
is
Available
kill
listen
listener
Count
listeners
load
Module
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Listener
reset
Idle
Timer
run
set
Max
Listeners
listener
Count
runner
Generated using
TypeDoc
since v4.0.0