X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Finterfaces%2FPoolOptions.html;h=0a15406901a70d2b356dd1345020ba40cec955ac;hb=803f948f302ce93b89b93b875bef173f2a87c5fc;hp=0abe909a9c4e278f207b72ba0c95168fd747b856;hpb=4b4e53be53af022e65e6373e2773c64baa29406c;p=poolifier.git diff --git a/docs/interfaces/PoolOptions.html b/docs/interfaces/PoolOptions.html index 0abe909a..0a154069 100644 --- a/docs/interfaces/PoolOptions.html +++ b/docs/interfaces/PoolOptions.html @@ -1,6 +1,6 @@ -
Generated using TypeDoc
Options for a poolifier pool.
+- Preparing search index...
- The search index is not available
poolifier - v3.0.10Interface PoolOptions<Worker>
Options for a poolifier pool.
    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;
}
Type Parameters
Worker extends IWorker
Type of worker.
-Hierarchy
Index
Properties
Hierarchy
Index
Properties
Properties
Optional
enablePool events integrated with async resource emission.
Default Value
-Optional
enablePool worker node tasks queue.
+Optional
enablePool worker node tasks queue.
Default Value
-Optional
errorA function that will listen for error event on each worker.
+Optional
errorA function that will listen for error event on each worker.
Default Value
-() => {}
Optional
exitA function that will listen for exit event on each worker.
+Optional
exitA function that will listen for exit event on each worker.
Default Value
-() => {}
Optional
messageA function that will listen for message event on each worker.
+Optional
messageA function that will listen for message event on each worker.
Default Value
-() => {}
Optional
onlineA function that will listen for online event on each worker.
+Optional
onlineA function that will listen for online event on each worker.
Default Value
-() => {}
Optional
restartRestart worker on error.
-Optional
startWhether to start the minimum number of workers at pool initialization.
+Optional
restartRestart worker on error.
+Optional
startWhether to start the minimum number of workers at pool initialization.
Default Value
-Optional
tasksPool worker node tasks queue options.
-Optional
workerThe worker choice strategy to use in this pool.
+Optional
tasksPool worker node tasks queue options.
+Optional
workerThe worker choice strategy to use in this pool.
Default Value
-Optional
workerThe worker choice strategy options.
-Settings
Member Visibility
Theme
On This Page
Generated using TypeDoc
Optional
workerThe worker choice strategy options.
+Settings
Member Visibility
Theme
On This Page