X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FThreadPoolOptions.html;h=daa041701fac4721983350d88ec762dc62aba92f;hb=ef58d1c56c04f43dc88a76ef35d0127fe2bab27d;hp=04943b5c185f4e52375f102044e7dd47bae61bb7;hpb=9867896b122160ea5d8e6dbccba4cc5916bf523b;p=poolifier.git diff --git a/docs/interfaces/ThreadPoolOptions.html b/docs/interfaces/ThreadPoolOptions.html index 04943b5c..daa04170 100644 --- a/docs/interfaces/ThreadPoolOptions.html +++ b/docs/interfaces/ThreadPoolOptions.html @@ -1,40 +1,5 @@ -ThreadPoolOptions | poolifier - v2.6.45
-
- -
-
-
-
- -

Interface ThreadPoolOptions

-
-

Options for a poolifier thread pool.

-
-
-
-

Hierarchy

-
-
-
-
- -
-
-

Properties

-
enableEvents? +ThreadPoolOptions | poolifier - v3.0.9

Interface ThreadPoolOptions

Options for a poolifier thread pool.

+
interface ThreadPoolOptions {
    enableEvents?: boolean;
    enableTasksQueue?: boolean;
    errorHandler?: ErrorHandler<Worker>;
    exitHandler?: ExitHandler<Worker>;
    messageHandler?: MessageHandler<Worker>;
    onlineHandler?: OnlineHandler<Worker>;
    restartWorkerOnError?: boolean;
    startWorkers?: boolean;
    tasksQueueOptions?: TasksQueueOptions;
    workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN";
    workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions;
    workerOptions?: WorkerOptions;
}

Hierarchy

-
-

Properties

-
- -
enableEvents?: boolean
-

Pool events emission.

-
-
-

Default Value

true
+

Properties

enableEvents?: boolean

Pool events integrated with async resource emission.

+

Default Value

true
 
-
-
- -
enableTasksQueue?: boolean
-

Pool worker node tasks queue.

-
-
-

Default Value

false
+
enableTasksQueue?: boolean

Pool worker node tasks queue.

+

Default Value

false
 
-
-
- -
errorHandler?: ErrorHandler<Worker>
-

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

-
-
-

Default Value

() => {}

-
-
- -
exitHandler?: ExitHandler<Worker>
-

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

-
-
-

Default Value

() => {}

-
-
- -
messageHandler?: MessageHandler<Worker>
-

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

-
-
-

Default Value

() => {}

-
-
- -
onlineHandler?: OnlineHandler<Worker>
-

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

-
-
-

Default Value

() => {}

-
-
- -
restartWorkerOnError?: boolean
-

Restart worker on error.

-
-
-
- -
startWorkers?: boolean
-

Whether to start the minimum number of workers at pool initialization.

-
-
-

Default Value

true
+
errorHandler?: ErrorHandler<Worker>

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

+

Default Value

() => {}

+
exitHandler?: ExitHandler<Worker>

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

+

Default Value

() => {}

+
messageHandler?: MessageHandler<Worker>

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

+

Default Value

() => {}

+
onlineHandler?: OnlineHandler<Worker>

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

+

Default Value

() => {}

+
restartWorkerOnError?: boolean

Restart worker on error.

+
startWorkers?: boolean

Whether to start the minimum number of workers at pool initialization.

+

Default Value

true
 
-
-
- -
tasksQueueOptions?: TasksQueueOptions
-

Pool worker node tasks queue options.

-
-
-
- -
workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
-

The worker choice strategy to use in this pool.

-
-
-

Default Value

WorkerChoiceStrategies.ROUND_ROBIN
+
tasksQueueOptions?: TasksQueueOptions

Pool worker node tasks queue options.

+
workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"

The worker choice strategy to use in this pool.

+

Default Value

WorkerChoiceStrategies.ROUND_ROBIN
 
-
-
- -
workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
-

The worker choice strategy options.

-
-
-
- -
workerOptions?: WorkerOptions
-

Worker options.

-
-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +
workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions

The worker choice strategy options.

+
workerOptions?: WorkerOptions

Worker options.

+

Generated using TypeDoc

\ No newline at end of file