X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2Fclusterpooloptions.html;h=f741a902050d7f69dbd5244b51264e925c41f546;hb=0136f64e4790627dd07ec018e9c2e4cd8888191e;hp=2ec928b1e5c1e913b525c479da323a6c7b9f570e;hpb=7c0ba92006a5c188738ffc5ff642c51f172df3d6;p=poolifier.git diff --git a/docs/interfaces/clusterpooloptions.html b/docs/interfaces/clusterpooloptions.html index 2ec928b1..f741a902 100644 --- a/docs/interfaces/clusterpooloptions.html +++ b/docs/interfaces/clusterpooloptions.html @@ -1,342 +1,19 @@ - - - - - - ClusterPoolOptions | poolifier - - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface ClusterPoolOptions

-
-
-
-
-
-
-
-
-
-

Options for a poolifier cluster pool.

-
-
-
-
-

Hierarchy

-
    -
  • - PoolOptions<Worker> -
      -
    • - ClusterPoolOptions -
    • -
    -
  • -
-
-
-

Index

-
- -
-
-
-

Properties

-
- -

Optional enableEvents

-
enableEvents: undefined | boolean
- -
-
-

Pool events emission.

-
-

Default to true.

-
-
-
- -

Optional env

-
env: any
- -
-
-

Key/value pairs to add to worker process environment.

-
-
-
see
-

https://nodejs.org/api/cluster.html#cluster_cluster_fork_env

-
-
-
-
-
- -

Optional errorHandler

-
errorHandler: undefined | ErrorHandler<Worker>
- -
-
-

A function that will listen for error event on each worker.

-
-
-
-
- -

Optional exitHandler

-
exitHandler: undefined | ExitHandler<Worker>
- -
-
-

A function that will listen for exit event on each worker.

-
-
-
-
- -

Optional onlineHandler

-
onlineHandler: undefined | OnlineHandler<Worker>
- -
-
-

A function that will listen for online event on each worker.

-
-
-
-
- -

Optional workerChoiceStrategy

-
workerChoiceStrategy: undefined | "ROUND_ROBIN" | "LESS_RECENTLY_USED"
- -
-
-

The work choice strategy to use in this pool.

-
-
-
-
-
- -
-
- -
-

Generated using TypeDoc

-
-
- - - \ No newline at end of file +ClusterPoolOptions | poolifier
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ClusterPoolOptions

+

Options for a poolifier cluster pool.

+

Hierarchy

Index

Properties

Optional enableEvents

enableEvents?: boolean
+

Pool events emission.

+
default

true

+

Optional env

env?: any
+

Key/value pairs to add to worker process environment.

+
see

https://nodejs.org/api/cluster.html#cluster_cluster_fork_env

+

Optional errorHandler

errorHandler?: ErrorHandler<Worker>
+

A function that will listen for error event on each worker.

+

Optional exitHandler

exitHandler?: ExitHandler<Worker>
+

A function that will listen for exit event on each worker.

+

Optional messageHandler

messageHandler?: MessageHandler<Worker>
+

A function that will listen for message event on each worker.

+

Optional onlineHandler

onlineHandler?: OnlineHandler<Worker>
+

A function that will listen for online event on each worker.

+

Optional workerChoiceStrategy

workerChoiceStrategy?: "ROUND_ROBIN" | "LESS_RECENTLY_USED"
+

The work choice strategy to use in this pool.

+

Generated using TypeDoc

\ No newline at end of file