X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FPoolOptions.html;h=757900b2b6139365ce34b01a6ea8fbecbae24974;hb=9451bebdd6d0b7c9b5dded635ee391e116f869e1;hp=e9e48ca9cbdc59d7ea6f63097d8a3cbd779d0902;hpb=10fdf6b15d99197b3e9a783dcc697f1acaf02cd2;p=poolifier.git diff --git a/docs/interfaces/PoolOptions.html b/docs/interfaces/PoolOptions.html index e9e48ca9..757900b2 100644 --- a/docs/interfaces/PoolOptions.html +++ b/docs/interfaces/PoolOptions.html @@ -1,37 +1,46 @@ -
Type of worker.
-Optional
enablePool events integrated with async resource emission.
-true
+PoolOptions | poolifier - v4.0.15 Interface PoolOptions<Worker>
Options for a poolifier pool.
+ interface PoolOptions<Worker> {
    enableEvents?: boolean;
    enableTasksQueue?: boolean;
    env?: Record<string, unknown>;
    errorHandler?: ErrorHandler<Worker>;
    exitHandler?: ExitHandler<Worker>;
    messageHandler?: MessageHandler<Worker>;
    onlineHandler?: OnlineHandler<Worker>;
    restartWorkerOnError?: boolean;
    settings?: ClusterSettings;
    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;
} Type Parameters
- Worker extends IWorker
Type of worker.
+
Properties
Optional
enable Events
enable Events?: booleanPool events integrated with async resource emission.
+Default Value
true
-Optional
enable Tasks Queue
enable Tasks Queue?: booleanPool worker node tasks queue.
-Default Value
false
+
Optional
enable Tasks Queue
enable Tasks Queue?: booleanPool worker node tasks queue.
+Default Value
false
-Optional
error Handler
A function that will listen for error event on each worker.
+Optional
env
env?: Record<string, unknown>Key/value pairs to add to worker process environment.
+Optional
error Handler
A function that will listen for error event on each worker.
Default Value
() => {}
-Optional
exit Handler
A function that will listen for exit event on each worker.
+Optional
exit Handler
A function that will listen for exit event on each worker.
Default Value
() => {}
-Optional
message Handler
A function that will listen for message event on each worker.
+Optional
message Handler
A function that will listen for message event on each worker.
Default Value
() => {}
-Optional
online Handler
A function that will listen for online event on each worker.
+Optional
online Handler
A function that will listen for online event on each worker.
Default Value
() => {}
-Optional
restart Worker On Error
restart Worker On Error?: booleanRestart worker on error.
-Optional
start Workers
start Workers?: booleanWhether to start the minimum number of workers at pool initialization.
-Default Value
true
+
Optional
restart Worker On Error
restart Worker On Error?: booleanRestart worker on error.
+Optional
settings
settings?: ClusterSettingsCluster settings.
+Optional
start Workers
start Workers?: booleanWhether to start the minimum number of workers at pool initialization.
+Default Value
true
-Optional
tasks Queue Options
Pool worker node tasks queue options.
-Optional
worker Choice Strategy
worker Choice Strategy?: "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
+
Optional
tasks Queue Options
Pool worker node tasks queue options.
+Optional
worker Choice Strategy
worker Choice Strategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"The default worker choice strategy to use in this pool.
+Default Value
WorkerChoiceStrategies.ROUND_ROBIN
-Optional
worker Choice Strategy Options
The worker choice strategy options.
-Generated using TypeDoc
\ No newline at end of file
+
Optional
workerThe worker choice strategy options.
+Optional
workerWorker options.
+
Options for a poolifier pool.
-