X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedThreadPool.html;h=e1e40fe844479b948bc6d6a374669be7a7913916;hb=6c285176ad7e73f183942ebc427d144a76d96057;hp=f7cafbc950950bd52d36e125503c52ace91becee;hpb=f7d15c1217381b306300beb7926b42fde93bc579;p=poolifier.git diff --git a/docs/classes/FixedThreadPool.html b/docs/classes/FixedThreadPool.html index f7cafbc9..e1e40fe8 100644 --- a/docs/classes/FixedThreadPool.html +++ b/docs/classes/FixedThreadPool.html @@ -1,4 +1,4 @@ -
Optional
Readonly
emitterGenerated using TypeDoc
Emitter on which events can be listened to.
+
+Optional
emitterEvent emitter integrated with async resource on which events can be listened to. +The async tracking tooling identifier is
poolifier:<PoolType>-<WorkerType>-pool
.Events that can currently be listened to:
'ready'
: Emitted when the number of workers created in the pool has reached the minimum size expected and are ready.Protected
Readonly
fileProtected
Optional
Readonly
maxProtected
Readonly
numberProtected
Readonly
optsProtected
promiseProtected
workerReadonly
Internal
workerAccessors
Protected
full@@ -267,7 +270,7 @@
info
@@ -279,7 +282,7 @@
Protected
max@@ -291,7 +294,7 @@
Protected
min@@ -303,7 +306,7 @@
Private
ready@@ -315,7 +318,7 @@
Protected
type@@ -328,7 +331,7 @@
Private
utilization@@ -341,7 +344,7 @@
Protected
worker@@ -353,7 +356,7 @@
Methods
Protected
after@@ -412,7 +415,7 @@ Can be overridden.
Protected
after@@ -433,7 +436,7 @@ Can be overridden.
Protected
before@@ -459,23 +462,7 @@ Can be overridden.
Dynamic Pool Size
-Protected
check-- check
Dynamic Pool Size(min, max): void
--
-
-
-
Parameters
---
-
--
-
min: number
max: number
Returns void
Protected
create@@ -488,7 +475,7 @@ Can be overridden.
Protected
create@@ -501,7 +488,7 @@ Can be overridden.
Protected
create@@ -514,7 +501,48 @@ Can be overridden.
Worker Message Listener
+Protected
deregister+- deregister
Worker Message Listener<Message>(workerNodeKey, listener): void
+-
+
+
+
+
+
+
Deregisters a listener callback on the worker given its worker node key.
+Type Parameters
++-
+
Message
Parameters
++-
+
+
+-
+
+
+
workerNodeKey: number
+The worker node key.
+listener: ((message) => void)
+The message listener callback.
++-
+
+- (message): void
+-
+
+
+
Parameters
++-
+
message: MessageValue<Message, unknown>
Returns void
Returns void
+destroy
@@ -526,7 +554,7 @@ Can be overridden.
Protected
destroy@@ -546,7 +574,7 @@ Can be overridden.
enable Tasks Queue
@@ -571,7 +599,7 @@ Can be overridden.
execute
@@ -602,7 +630,21 @@ Can be overridden.
Worker Node As Not Ready
+Protected
flag+- flag
Worker Node As Not Ready(workerNodeKey): void
+-
+
+
+
Parameters
++-
+
workerNodeKey: number
Returns void
Protected
flush@@ -616,7 +658,7 @@ Can be overridden.
Returns void
Protected
get@@ -637,7 +679,7 @@ Can be overridden.
has Task Function
@@ -658,7 +700,7 @@ Can be overridden.
has Worker Node Back Pressure
@@ -679,7 +721,7 @@ Can be overridden.
Protected
internal@@ -692,7 +734,7 @@ Can be overridden.
Protected
is@@ -704,7 +746,7 @@ Can be overridden.
list Task Function Names
@@ -717,7 +759,48 @@ Can be overridden.
Once Worker Message Listener
+Protected
register+- register
Once Worker Message Listener<Message>(workerNodeKey, listener): void
+-
+
+
+
+
+
+
Registers once a listener callback on the worker given its worker node key.
+Type Parameters
++-
+
Message
Parameters
++-
+
+
+-
+
+
+
workerNodeKey: number
+The worker node key.
+listener: ((message) => void)
+The message listener callback.
++-
+
+- (message): void
+-
+
+
+
Parameters
++-
+
message: MessageValue<Message, unknown>
Returns void
Returns void
+Protected
register@@ -758,7 +841,7 @@ Can be overridden.
remove Task Function
@@ -779,7 +862,7 @@ Can be overridden.
Protected
send@@ -793,7 +876,7 @@ Can be overridden.
Returns Promise<void>
Protected
send@@ -813,7 +896,7 @@ Can be overridden.
Protected
send@@ -843,7 +926,7 @@ Can be overridden.
set Default Task Function
@@ -864,7 +947,7 @@ Can be overridden.
set Tasks Queue Options
@@ -884,7 +967,7 @@ Can be overridden.
set Worker Choice Strategy
@@ -909,7 +992,7 @@ Can be overridden.
set Worker Choice Strategy Options
@@ -929,7 +1012,7 @@ Can be overridden.
Protected
setup@@ -942,7 +1025,7 @@ Can be overridden.
start
@@ -954,35 +1037,24 @@ Can be overridden.
Listener
+Protected
workerProtected
worker-- worker
Listener(): ((message) => void)
--
-
-
This method is the listener registered for each worker message.
-Returns ((message) => void)
The listener function to execute when a message is received from a worker.
- ---
-
-- (message): void
+- worker
Message Listener(message): void
-
-
-
-
+ - Defined in src/pools/abstract-pool.ts:1519
This method is the listener registered for each worker message.
+This method is the message listener registered on each worker.
Parameters
message: MessageValue<Response, unknown>
Returns void
The listener function to execute when a message is received from a worker.
- - +Returns void
Member Visibility
Theme
@@ -1024,14 +1096,15 @@ Can be overridden.after Task Execution Hook
after Worker Node Setup
before Task Execution Hook
-check Dynamic Pool Size
create And Setup Dynamic Worker Node
create And Setup Worker Node
create Worker
+deregister Worker Message Listener
destroy
destroy Worker Node
enable Tasks Queue
execute
+flag Worker Node As Not Ready
flush Tasks Queue
get Worker Info
has Task Function
@@ -1039,6 +1112,7 @@ Can be overridden.
internal Busy
is Main
list Task Function Names
+register Once Worker Message Listener
register Worker Message Listener
remove Task Function
send Kill Message To Worker
@@ -1050,9 +1124,9 @@ Can be overridden.
set Worker Choice Strategy Options
setup Hook
start
-worker Listener