X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FPoolOptions.html;h=76dff16af116b943111fdbc1a8ef1d79c83e21c4;hb=1b64ffbd6aa476a11839e461c2adac0c5bd34ed1;hp=a9ddfa8420178d20d19168fc78b57911a7cc38ad;hpb=564ec16ceddb03324d81bfa385669cc188da03fd;p=poolifier.git diff --git a/docs/interfaces/PoolOptions.html b/docs/interfaces/PoolOptions.html index a9ddfa84..76dff16a 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 - v4.0.2 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 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.
-