Interface Cluster
Hierarchy
-
EventEmitter
- Cluster
Index
Properties
Worker
isMaster
isWorker
settings
worker
workers
Type declaration
-
[index: string]: Worker
Static defaultMaxListeners
Methods
addListener
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
worker: Worker
-
code: number
-
signal: string
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "fork"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns this
-
-
Parameters
Returns this
-
Parameters
-
event: "message"
-
listener: function
Returns this
-
-
Parameters
-
event: "online"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "setup"
-
listener: function
-
-
Parameters
-
settings: any
Returns void
-
-
-
Returns this
-
disconnect
-
Parameters
-
Optional callback: Function
Returns void
-
emit
-
Parameters
-
event: string | symbol
-
Rest ...args: any[]
Returns boolean
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns boolean
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
worker: Worker
-
code: number
-
signal: string
Returns void
-
-
-
Returns boolean
-
-
Parameters
-
event: "fork"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns boolean
-
-
Parameters
Returns boolean
-
Parameters
-
event: "message"
-
listener: function
Returns boolean
-
-
Parameters
-
event: "online"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns boolean
-
-
Parameters
-
event: "setup"
-
listener: function
-
-
Parameters
-
settings: any
Returns void
-
-
-
Returns boolean
-
eventNames
-
Returns (string | symbol)[]
fork
-
Parameters
-
Optional env: any
Returns Worker
-
getMaxListeners
-
Returns number
listenerCount
-
Parameters
-
type: string | symbol
Returns number
-
listeners
-
Parameters
-
event: string | symbol
Returns Function[]
-
on
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
worker: Worker
-
code: number
-
signal: string
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "fork"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns this
-
-
Parameters
Returns this
-
Parameters
-
event: "message"
-
listener: function
Returns this
-
-
Parameters
-
event: "online"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "setup"
-
listener: function
-
-
Parameters
-
settings: any
Returns void
-
-
-
Returns this
-
once
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
worker: Worker
-
code: number
-
signal: string
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "fork"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns this
-
-
Parameters
Returns this
-
Parameters
-
event: "message"
-
listener: function
Returns this
-
-
Parameters
-
event: "online"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "setup"
-
listener: function
-
-
Parameters
-
settings: any
Returns void
-
-
-
Returns this
-
prependListener
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
worker: Worker
-
code: number
-
signal: string
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "fork"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns this
-
-
Parameters
Returns this
-
Parameters
-
event: "message"
-
listener: function
Returns this
-
-
Parameters
-
event: "online"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "setup"
-
listener: function
-
-
Parameters
-
settings: any
Returns void
-
-
-
Returns this
-
prependOnceListener
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "disconnect"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "exit"
-
listener: function
-
-
Parameters
-
worker: Worker
-
code: number
-
signal: string
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "fork"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns this
-
-
Parameters
Returns this
-
Parameters
-
event: "message"
-
listener: function
Returns this
-
-
Parameters
-
event: "online"
-
listener: function
-
-
Parameters
-
worker: Worker
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "setup"
-
listener: function
-
-
Parameters
-
settings: any
Returns void
-
-
-
Returns this
-
removeAllListeners
-
Parameters
-
Optional event: string | symbol
Returns this
-
removeListener
-
Parameters
-
event: string | symbol
-
listener: Function
Returns this
-
setMaxListeners
-
Parameters
-
n: number
Returns this
-
setupMaster
-
Parameters
-
Optional settings: ClusterSetupMasterSettings
Returns void
-
Static listenerCount
-
Parameters
-
emitter: EventEmitter
-
event: string | symbol
Returns number
-
Generated using TypeDoc
events.EventEmitter