X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Finterfaces%2FPoolOptions.html;h=e01708d34bf8c979c6fff83a8ed0f291a3d0efff;hb=refs%2Ftags%2Fv3.1.22;hp=5c497accd3e568236a9594821beed7e9585b22cc;hpb=aab0aa502b6d1ca1e2b480460d9cf5f34707c34c;p=poolifier.git diff --git a/docs/interfaces/PoolOptions.html b/docs/interfaces/PoolOptions.html index 5c497acc..e01708d3 100644 --- a/docs/interfaces/PoolOptions.html +++ b/docs/interfaces/PoolOptions.html @@ -1,225 +1,46 @@ -
Type of worker.
-Optional
enablePool events integrated with async resource emission.
-true
+PoolOptions | poolifier - v3.1.21 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?: boolean
-Pool 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.
-
-
-Default Value
() => {}
-
-
-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.
-
-
-Default Value
() => {}
-
-
-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?: boolean
-Restart worker on error.
-
-
-
-Optional
start Workers
-start Workers?: boolean
-Whether to start the minimum number of workers at pool initialization.
-
-
-Default Value
true
+
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.
+Default Value
() => {}
+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.
+Default Value
() => {}
+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 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.
+Generated using TypeDoc
Options for a poolifier pool.
-