X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FWorkerChoiceStrategyContext.html;h=8071b0d34f30d59881903fb86297bbef3d493311;hb=b80e10df8405b314ca192edbc9a079dffcc6305b;hp=024a515b6ad148b9a95cbe878e4f8594b559d42f;hpb=aac8863d208eadcb0ecb33dc44d045c26f5a444f;p=poolifier.git diff --git a/docs/classes/WorkerChoiceStrategyContext.html b/docs/classes/WorkerChoiceStrategyContext.html index 024a515b..8071b0d3 100644 --- a/docs/classes/WorkerChoiceStrategyContext.html +++ b/docs/classes/WorkerChoiceStrategyContext.html @@ -1,4 +1,4 @@ -
Generated using TypeDoc
Type of data sent to the worker. This can only be serializable data.
+Type of data sent to the worker. This can only be structured-cloneable data.
Response = unknown
-Type of execution response. This can only be serializable data.
+Type of execution response. This can only be structured-cloneable data.
@@ -60,6 +60,7 @@
execute
+get Strategy Policy
get Task Statistics Requirements
remove
set Options
@@ -79,7 +80,7 @@
-
-
+-
-
@@ -105,14 +106,14 @@
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:44
Choice Strategies
worker Choice Strategies: Map<"ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN", IWorkerChoiceStrategy>
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:32
Choice Strategy
worker Choice Strategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN
@@ -120,7 +121,7 @@
Methods
Type Parameters
Worker extends IWorker<Worker>
Worker extends IWorker
Data = unknown
Returns WorkerChoiceStrategyContext<Worker, Data, Response>
Properties
Private
Readonly
workerPrivate
workerMethods
Throws
https://nodejs.org/api/errors.html#class-error If the worker node key is null or undefined.
get Strategy Policy
++- get
Strategy Policy(): StrategyPolicy
+-
+
+
Gets the strategy policy in the context.
+Returns StrategyPolicy
The strategy policy.
+ +get Task Statistics Requirements
@@ -148,7 +161,7 @@
remove
@@ -168,7 +181,7 @@
set Options
@@ -187,7 +200,7 @@
Returns void
set Worker Choice Strategy
@@ -206,7 +219,7 @@
Returns void
update
@@ -223,7 +236,7 @@