X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIPool.html;h=78acb1c92fad7956b4ad292dbf6c135d5b10015a;hb=956cfeccbd168a90f3d9acb1729975cf3f861a77;hp=42a94ebafa20534278976c4a9223294071645a35;hpb=e39450c0889208d6dcde666fc05b95fe7a98ee29;p=poolifier.git
diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html
index 42a94eba..78acb1c9 100644
--- a/docs/interfaces/IPool.html
+++ b/docs/interfaces/IPool.html
@@ -1,4 +1,4 @@
-
IPool | poolifier
+IPool | poolifier
@@ -18,19 +18,19 @@
-
+
Type Parameters
-
+
-
-
Worker extends IWorker
+Worker extends IWorker
-
-
Data = unknown
+Data = unknown
-
-
Response = unknown
+Response = unknown
+Defined in src/pools/pool.ts:119
@@ -50,34 +50,37 @@
Properties
-
+
destroy
-destroy: (() => Promise<void>)
+destroy: (() => Promise<void>)
Type declaration
-
-
-- (): Promise<void>
+
+- (): Promise<void>
-
-
Returns Promise<void>
-
+
Optional
Readonly
emitter
-
+
-
+
+enableTasksQueue
+enableTasksQueue: ((enable, tasksQueueOptions?) => void)
+
+
Type declaration
+
+-
+
+- (enable, tasksQueueOptions?): void
+-
+
+
+
Parameters
+
+-
+
enable: boolean
+
+-
+
+
+Returns void
+
execute
-execute: ((data: Data) => Promise<Response>)
+execute: ((data?, name?) => Promise<Response>)
Type declaration
-
-
+
setWorkerChoiceStrategy
-setWorkerChoiceStrategy: ((workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN") => void)
+setWorkerChoiceStrategy: ((workerChoiceStrategy, workerChoiceStrategyOptions?) => void)
Type declaration
-
-
-- (workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"): void
+
+- (workerChoiceStrategy, workerChoiceStrategyOptions?): void
-
@@ -146,27 +181,60 @@
Parameters
-
-
workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
+workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
+-
+
+
+Returns void
+
+setWorkerChoiceStrategyOptions
+setWorkerChoiceStrategyOptions: ((workerChoiceStrategyOptions) => void)
+
+
Type declaration
+
+-
+
+- (workerChoiceStrategyOptions): void
+-
+
+
Returns void
-
+
+Readonly
size
+size: number
+
+
-
+
+
Defined in src/pools/pool.ts:137
+Theme
On This Page
+destroy
+emitter
+enableTasksQueue
+execute
+setTasksQueueOptions
+setWorkerChoiceStrategy
+setWorkerChoiceStrategyOptions
+size
+type
+workerNodes
+PoolType
+AbstractPool
+AbstractWorker
+CircularArray
+ClusterWorker
+DynamicClusterPool
+DynamicThreadPool
+FixedClusterPool
+FixedThreadPool
+PoolEmitter
+Queue
+ThreadWorker
+WorkerChoiceStrategyContext
+ClusterPoolOptions
+IPool
+IWorker
+IWorkerChoiceStrategy
+MessageValue
+PoolOptions
+PromiseResponseWrapper
+RequiredStatistics
+Task
+TasksQueueOptions
+TasksUsage
+WorkerChoiceStrategyOptions
+WorkerNode
+WorkerOptions
+Draft
+ErrorHandler
+ExitHandler
+KillBehavior
+MessageHandler
+OnlineHandler
+PoolEvent
+TaskFunctions
+ThreadWorkerWithMessageChannel
+WorkerAsyncFunction
+WorkerChoiceStrategy
+WorkerFunction
+WorkerSyncFunction
+KillBehaviors
+PoolEvents
+WorkerChoiceStrategies
\ No newline at end of file
Contract definition for a poolifier pool.