2 <html class=
"default no-js">
5 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge">
6 <title>FixedThreadPool | poolifier
</title>
7 <meta name=
"description" content=
"Documentation for poolifier">
8 <meta name=
"viewport" content=
"width=device-width, initial-scale=1">
9 <link rel=
"stylesheet" href=
"../assets/css/main.css">
10 <script async
src=
"../assets/js/search.js" id=
"search-script"></script>
14 <div class=
"tsd-page-toolbar">
15 <div class=
"container">
16 <div class=
"table-wrap">
17 <div class=
"table-cell" id=
"tsd-search" data-index=
"../assets/js/search.json" data-base=
"..">
19 <label for=
"tsd-search-field" class=
"tsd-widget search no-caption">Search
</label>
20 <input id=
"tsd-search-field" type=
"text" />
23 <li class=
"state loading">Preparing search index...
</li>
24 <li class=
"state failure">The search index is not available
</li>
26 <a href=
"../index.html" class=
"title">poolifier
</a>
28 <div class=
"table-cell" id=
"tsd-widgets">
30 <a href=
"#" class=
"tsd-widget options no-caption" data-toggle=
"options">Options
</a>
31 <div class=
"tsd-filter-group">
32 <div class=
"tsd-select" id=
"tsd-filter-visibility">
33 <span class=
"tsd-select-label">All
</span>
34 <ul class=
"tsd-select-list">
35 <li data-value=
"public">Public
</li>
36 <li data-value=
"protected">Public/Protected
</li>
37 <li data-value=
"private" class=
"selected">All
</li>
40 <input type=
"checkbox" id=
"tsd-filter-inherited" checked
/>
41 <label class=
"tsd-widget" for=
"tsd-filter-inherited">Inherited
</label>
42 <input type=
"checkbox" id=
"tsd-filter-externals" checked
/>
43 <label class=
"tsd-widget" for=
"tsd-filter-externals">Externals
</label>
46 <a href=
"#" class=
"tsd-widget menu no-caption" data-toggle=
"menu">Menu
</a>
51 <div class=
"tsd-page-title">
52 <div class=
"container">
53 <ul class=
"tsd-breadcrumb">
55 <a href=
"../index.html">poolifier
</a>
58 <a href=
"fixedthreadpool.html">FixedThreadPool
</a>
61 <h1>Class FixedThreadPool
<Data, Response
></h1>
65 <div class=
"container container-main">
67 <div class=
"col-8 col-content">
68 <section class=
"tsd-panel tsd-comment">
69 <div class=
"tsd-comment tsd-typography">
71 <p>A thread pool with a fixed number of threads.
</p>
73 <p>It is possible to perform tasks in sync or asynchronous mode as you prefer.
</p>
74 <p>This pool selects the threads in a round robin fashion.
</p>
75 <dl class=
"tsd-comment-tags">
77 <dd><p><a href=
"https://github.com/pioardi">Alessandro Pio Ardizio
</a></p>
85 <section class=
"tsd-panel tsd-type-parameters">
86 <h3>Type parameters
</h3>
87 <ul class=
"tsd-type-parameters">
89 <h4>Data =
<span class=
"tsd-signature-type">unknown
</span></h4>
90 <div class=
"tsd-comment tsd-typography">
92 <p>Type of data sent to the worker. This can only be serializable data.
</p>
97 <h4>Response =
<span class=
"tsd-signature-type">unknown
</span></h4>
98 <div class=
"tsd-comment tsd-typography">
100 <p>Type of response of execution. This can only be serializable data.
</p>
106 <section class=
"tsd-panel tsd-hierarchy">
108 <ul class=
"tsd-hierarchy">
110 <span class=
"tsd-signature-type">AbstractPool
</span><span class=
"tsd-signature-symbol"><</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">Data
</span><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">Response
</span><span class=
"tsd-signature-symbol">></span>
111 <ul class=
"tsd-hierarchy">
113 <span class=
"target">FixedThreadPool
</span>
114 <ul class=
"tsd-hierarchy">
116 <a href=
"dynamicthreadpool.html" class=
"tsd-signature-type" data-tsd-kind=
"Class">DynamicThreadPool
</a>
124 <section class=
"tsd-panel-group tsd-index-group">
126 <section class=
"tsd-panel tsd-index-panel">
127 <div class=
"tsd-index-content">
128 <section class=
"tsd-index-section ">
129 <h3>Constructors
</h3>
130 <ul class=
"tsd-index-list">
131 <li class=
"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter"><a href=
"fixedthreadpool.html#constructor" class=
"tsd-kind-icon">constructor
</a></li>
134 <section class=
"tsd-index-section ">
136 <ul class=
"tsd-index-list">
137 <li class=
"tsd-kind-property tsd-parent-kind-class"><a href=
"fixedthreadpool.html#emitter" class=
"tsd-kind-icon">emitter
</a></li>
138 <li class=
"tsd-kind-property tsd-parent-kind-class"><a href=
"fixedthreadpool.html#filepath" class=
"tsd-kind-icon">file
<wbr>Path
</a></li>
139 <li class=
"tsd-kind-property tsd-parent-kind-class"><a href=
"fixedthreadpool.html#max" class=
"tsd-kind-icon">max
</a></li>
140 <li class=
"tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href=
"fixedthreadpool.html#nextmessageid" class=
"tsd-kind-icon">next
<wbr>Message
<wbr>Id
</a></li>
141 <li class=
"tsd-kind-property tsd-parent-kind-class"><a href=
"fixedthreadpool.html#numberofworkers" class=
"tsd-kind-icon">number
<wbr>OfWorkers
</a></li>
142 <li class=
"tsd-kind-property tsd-parent-kind-class"><a href=
"fixedthreadpool.html#opts" class=
"tsd-kind-icon">opts
</a></li>
143 <li class=
"tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href=
"fixedthreadpool.html#promisemap" class=
"tsd-kind-icon">promise
<wbr>Map
</a></li>
144 <li class=
"tsd-kind-property tsd-parent-kind-class"><a href=
"fixedthreadpool.html#tasks" class=
"tsd-kind-icon">tasks
</a></li>
145 <li class=
"tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href=
"fixedthreadpool.html#workerchoicestrategycontext" class=
"tsd-kind-icon">worker
<wbr>Choice
<wbr>Strategy
<wbr>Context
</a></li>
146 <li class=
"tsd-kind-property tsd-parent-kind-class"><a href=
"fixedthreadpool.html#workers" class=
"tsd-kind-icon">workers
</a></li>
149 <section class=
"tsd-index-section ">
151 <ul class=
"tsd-index-list">
152 <li class=
"tsd-kind-get-signature tsd-parent-kind-class"><a href=
"fixedthreadpool.html#busy" class=
"tsd-kind-icon">busy
</a></li>
153 <li class=
"tsd-kind-get-signature tsd-parent-kind-class"><a href=
"fixedthreadpool.html#numberofrunningtasks" class=
"tsd-kind-icon">number
<wbr>OfRunning
<wbr>Tasks
</a></li>
154 <li class=
"tsd-kind-get-signature tsd-parent-kind-class"><a href=
"fixedthreadpool.html#type" class=
"tsd-kind-icon">type
</a></li>
157 <section class=
"tsd-index-section ">
159 <ul class=
"tsd-index-list">
160 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href=
"fixedthreadpool.html#afterworkersetup" class=
"tsd-kind-icon">after
<wbr>Worker
<wbr>Setup
</a></li>
161 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href=
"fixedthreadpool.html#chooseworker" class=
"tsd-kind-icon">choose
<wbr>Worker
</a></li>
162 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href=
"fixedthreadpool.html#createandsetupworker" class=
"tsd-kind-icon">create
<wbr>And
<wbr>Setup
<wbr>Worker
</a></li>
163 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href=
"fixedthreadpool.html#createworker" class=
"tsd-kind-icon">create
<wbr>Worker
</a></li>
164 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href=
"fixedthreadpool.html#decreaseworkerstasks" class=
"tsd-kind-icon">decrease
<wbr>Workers
<wbr>Tasks
</a></li>
165 <li class=
"tsd-kind-method tsd-parent-kind-class"><a href=
"fixedthreadpool.html#destroy" class=
"tsd-kind-icon">destroy
</a></li>
166 <li class=
"tsd-kind-method tsd-parent-kind-class"><a href=
"fixedthreadpool.html#destroyworker" class=
"tsd-kind-icon">destroy
<wbr>Worker
</a></li>
167 <li class=
"tsd-kind-method tsd-parent-kind-class"><a href=
"fixedthreadpool.html#execute" class=
"tsd-kind-icon">execute
</a></li>
168 <li class=
"tsd-kind-method tsd-parent-kind-class"><a href=
"fixedthreadpool.html#findfreetasksmapentry" class=
"tsd-kind-icon">find
<wbr>Free
<wbr>Tasks
<wbr>Map
<wbr>Entry
</a></li>
169 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href=
"fixedthreadpool.html#increaseworkerstask" class=
"tsd-kind-icon">increase
<wbr>Workers
<wbr>Task
</a></li>
170 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href=
"fixedthreadpool.html#internalexecute" class=
"tsd-kind-icon">internal
<wbr>Execute
</a></li>
171 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href=
"fixedthreadpool.html#internalgetbusystatus" class=
"tsd-kind-icon">internal
<wbr>Get
<wbr>Busy
<wbr>Status
</a></li>
172 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href=
"fixedthreadpool.html#ismain" class=
"tsd-kind-icon">is
<wbr>Main
</a></li>
173 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href=
"fixedthreadpool.html#registerworkermessagelistener" class=
"tsd-kind-icon">register
<wbr>Worker
<wbr>Message
<wbr>Listener
</a></li>
174 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href=
"fixedthreadpool.html#removeworker" class=
"tsd-kind-icon">remove
<wbr>Worker
</a></li>
175 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href=
"fixedthreadpool.html#sendtoworker" class=
"tsd-kind-icon">send
<wbr>ToWorker
</a></li>
176 <li class=
"tsd-kind-method tsd-parent-kind-class"><a href=
"fixedthreadpool.html#setworkerchoicestrategy" class=
"tsd-kind-icon">set
<wbr>Worker
<wbr>Choice
<wbr>Strategy
</a></li>
177 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href=
"fixedthreadpool.html#setuphook" class=
"tsd-kind-icon">setup
<wbr>Hook
</a></li>
178 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href=
"fixedthreadpool.html#workerlistener" class=
"tsd-kind-icon">worker
<wbr>Listener
</a></li>
184 <section class=
"tsd-panel-group tsd-member-group ">
185 <h2>Constructors
</h2>
186 <section class=
"tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter">
187 <a name=
"constructor" class=
"tsd-anchor"></a>
189 <ul class=
"tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter">
190 <li class=
"tsd-signature tsd-kind-icon">new
<wbr>Fixed
<wbr>Thread
<wbr>Pool
<Data, Response
><span class=
"tsd-signature-symbol">(
</span>numberOfThreads
<span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">number
</span>, filePath
<span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">string
</span>, opts
<span class=
"tsd-signature-symbol">?:
</span><a href=
"../interfaces/pooloptions.html" class=
"tsd-signature-type" data-tsd-kind=
"Interface">PoolOptions
</a><span class=
"tsd-signature-symbol"><</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a><span class=
"tsd-signature-symbol">></span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><a href=
"fixedthreadpool.html" class=
"tsd-signature-type" data-tsd-kind=
"Class">FixedThreadPool
</a><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">Data
</span><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">Response
</span><span class=
"tsd-signature-symbol">></span></li>
192 <ul class=
"tsd-descriptions">
193 <li class=
"tsd-description">
194 <aside class=
"tsd-sources">
196 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/thread/fixed.ts#L28">src/pools/thread/fixed.ts:
28</a></li>
199 <div class=
"tsd-comment tsd-typography">
201 <p>Constructs a new poolifier fixed thread pool.
</p>
204 <h4 class=
"tsd-type-parameters-title">Type parameters
</h4>
205 <ul class=
"tsd-type-parameters">
207 <h4>Data =
<span class=
"tsd-signature-type">unknown
</span></h4>
210 <h4>Response =
<span class=
"tsd-signature-type">unknown
</span></h4>
213 <h4 class=
"tsd-parameters-title">Parameters
</h4>
214 <ul class=
"tsd-parameters">
216 <h5>numberOfThreads:
<span class=
"tsd-signature-type">number
</span></h5>
217 <div class=
"tsd-comment tsd-typography">
218 <p>Number of threads for this pool.
</p>
222 <h5>filePath:
<span class=
"tsd-signature-type">string
</span></h5>
223 <div class=
"tsd-comment tsd-typography">
224 <p>Path to an implementation of a
<code>ThreadWorker
</code> file, which can be relative or absolute.
</p>
228 <h5>opts:
<a href=
"../interfaces/pooloptions.html" class=
"tsd-signature-type" data-tsd-kind=
"Interface">PoolOptions
</a><span class=
"tsd-signature-symbol"><</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a><span class=
"tsd-signature-symbol">></span><span class=
"tsd-signature-symbol"> = ...
</span></h5>
229 <div class=
"tsd-comment tsd-typography">
230 <p>Options for this fixed thread pool. Default:
<code>{}
</code></p>
234 <h4 class=
"tsd-returns-title">Returns
<a href=
"fixedthreadpool.html" class=
"tsd-signature-type" data-tsd-kind=
"Class">FixedThreadPool
</a><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">Data
</span><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">Response
</span><span class=
"tsd-signature-symbol">></span></h4>
239 <section class=
"tsd-panel-group tsd-member-group ">
241 <section class=
"tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
242 <a name=
"emitter" class=
"tsd-anchor"></a>
243 <h3><span class=
"tsd-flag ts-flagOptional">Optional
</span> <span class=
"tsd-flag ts-flagReadonly">Readonly
</span> emitter
</h3>
244 <div class=
"tsd-signature tsd-kind-icon">emitter
<span class=
"tsd-signature-symbol">:
</span> <span class=
"tsd-signature-type">undefined
</span><span class=
"tsd-signature-symbol"> |
</span><span class=
"tsd-signature-type">PoolEmitter
</span></div>
245 <aside class=
"tsd-sources">
247 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L117">src/pools/abstract-pool.ts:
117</a></li>
250 <div class=
"tsd-comment tsd-typography">
251 <dl class=
"tsd-comment-tags">
257 <section class=
"tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
258 <a name=
"filepath" class=
"tsd-anchor"></a>
259 <h3><span class=
"tsd-flag ts-flagReadonly">Readonly
</span> file
<wbr>Path
</h3>
260 <div class=
"tsd-signature tsd-kind-icon">file
<wbr>Path
<span class=
"tsd-signature-symbol">:
</span> <span class=
"tsd-signature-type">string
</span></div>
261 <aside class=
"tsd-sources">
264 <section class=
"tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
265 <a name=
"max" class=
"tsd-anchor"></a>
266 <h3><span class=
"tsd-flag ts-flagOptional">Optional
</span> <span class=
"tsd-flag ts-flagReadonly">Readonly
</span> max
</h3>
267 <div class=
"tsd-signature tsd-kind-icon">max
<span class=
"tsd-signature-symbol">:
</span> <span class=
"tsd-signature-type">undefined
</span><span class=
"tsd-signature-symbol"> |
</span><span class=
"tsd-signature-type">number
</span></div>
268 <aside class=
"tsd-sources">
270 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L120">src/pools/abstract-pool.ts:
120</a></li>
273 <div class=
"tsd-comment tsd-typography">
274 <dl class=
"tsd-comment-tags">
280 <section class=
"tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected">
281 <a name=
"nextmessageid" class=
"tsd-anchor"></a>
282 <h3><span class=
"tsd-flag ts-flagProtected">Protected
</span> next
<wbr>Message
<wbr>Id
</h3>
283 <div class=
"tsd-signature tsd-kind-icon">next
<wbr>Message
<wbr>Id
<span class=
"tsd-signature-symbol">:
</span> <span class=
"tsd-signature-type">number
</span><span class=
"tsd-signature-symbol"> =
0</span></div>
284 <aside class=
"tsd-sources">
286 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L138">src/pools/abstract-pool.ts:
138</a></li>
289 <div class=
"tsd-comment tsd-typography">
291 <p>ID of the next message.
</p>
295 <section class=
"tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
296 <a name=
"numberofworkers" class=
"tsd-anchor"></a>
297 <h3><span class=
"tsd-flag ts-flagReadonly">Readonly
</span> number
<wbr>OfWorkers
</h3>
298 <div class=
"tsd-signature tsd-kind-icon">number
<wbr>OfWorkers
<span class=
"tsd-signature-symbol">:
</span> <span class=
"tsd-signature-type">number
</span></div>
299 <aside class=
"tsd-sources">
302 <section class=
"tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
303 <a name=
"opts" class=
"tsd-anchor"></a>
304 <h3><span class=
"tsd-flag ts-flagReadonly">Readonly
</span> opts
</h3>
305 <div class=
"tsd-signature tsd-kind-icon">opts
<span class=
"tsd-signature-symbol">:
</span> <a href=
"../interfaces/pooloptions.html" class=
"tsd-signature-type" data-tsd-kind=
"Interface">PoolOptions
</a><span class=
"tsd-signature-symbol"><</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a><span class=
"tsd-signature-symbol">></span></div>
306 <aside class=
"tsd-sources">
309 <section class=
"tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected">
310 <a name=
"promisemap" class=
"tsd-anchor"></a>
311 <h3><span class=
"tsd-flag ts-flagProtected">Protected
</span> promise
<wbr>Map
</h3>
312 <div class=
"tsd-signature tsd-kind-icon">promise
<wbr>Map
<span class=
"tsd-signature-symbol">:
</span> <span class=
"tsd-signature-type">Map
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">number
</span><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">PromiseWorkerResponseWrapper
</span><span class=
"tsd-signature-symbol"><</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">Response
</span><span class=
"tsd-signature-symbol">></span><span class=
"tsd-signature-symbol">></span><span class=
"tsd-signature-symbol"> = ...
</span></div>
313 <aside class=
"tsd-sources">
315 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L130">src/pools/abstract-pool.ts:
130</a></li>
318 <div class=
"tsd-comment tsd-typography">
320 <p>The promise map.
</p>
323 <li><code>key
</code>: This is the message ID of each submitted task.
</li>
324 <li><code>value
</code>: An object that contains the worker, the resolve function and the reject function.
</li>
326 <p>When we receive a message from the worker we get a map entry and resolve/reject the promise based on the message.
</p>
329 <section class=
"tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
330 <a name=
"tasks" class=
"tsd-anchor"></a>
331 <h3><span class=
"tsd-flag ts-flagReadonly">Readonly
</span> tasks
</h3>
332 <div class=
"tsd-signature tsd-kind-icon">tasks
<span class=
"tsd-signature-symbol">:
</span> <span class=
"tsd-signature-type">Map
</span><span class=
"tsd-signature-symbol"><</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">number
</span><span class=
"tsd-signature-symbol">></span><span class=
"tsd-signature-symbol"> = ...
</span></div>
333 <aside class=
"tsd-sources">
335 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L114">src/pools/abstract-pool.ts:
114</a></li>
338 <div class=
"tsd-comment tsd-typography">
339 <dl class=
"tsd-comment-tags">
345 <section class=
"tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected">
346 <a name=
"workerchoicestrategycontext" class=
"tsd-anchor"></a>
347 <h3><span class=
"tsd-flag ts-flagProtected">Protected
</span> worker
<wbr>Choice
<wbr>Strategy
<wbr>Context
</h3>
348 <div class=
"tsd-signature tsd-kind-icon">worker
<wbr>Choice
<wbr>Strategy
<wbr>Context
<span class=
"tsd-signature-symbol">:
</span> <span class=
"tsd-signature-type">WorkerChoiceStrategyContext
</span><span class=
"tsd-signature-symbol"><</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">Data
</span><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">Response
</span><span class=
"tsd-signature-symbol">></span></div>
349 <aside class=
"tsd-sources">
351 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L145">src/pools/abstract-pool.ts:
145</a></li>
354 <div class=
"tsd-comment tsd-typography">
356 <p>Worker choice strategy instance implementing the worker choice algorithm.
</p>
358 <p>Default to a strategy implementing a round robin algorithm.
</p>
361 <section class=
"tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
362 <a name=
"workers" class=
"tsd-anchor"></a>
363 <h3><span class=
"tsd-flag ts-flagReadonly">Readonly
</span> workers
</h3>
364 <div class=
"tsd-signature tsd-kind-icon">workers
<span class=
"tsd-signature-symbol">:
</span> <a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a><span class=
"tsd-signature-symbol">[]
</span><span class=
"tsd-signature-symbol"> = ...
</span></div>
365 <aside class=
"tsd-sources">
367 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L111">src/pools/abstract-pool.ts:
111</a></li>
370 <div class=
"tsd-comment tsd-typography">
371 <dl class=
"tsd-comment-tags">
378 <section class=
"tsd-panel-group tsd-member-group ">
380 <section class=
"tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
381 <a name=
"busy" class=
"tsd-anchor"></a>
383 <ul class=
"tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
384 <li class=
"tsd-signature tsd-kind-icon"><span class=
"tsd-signature-symbol">get
</span> busy
<span class=
"tsd-signature-symbol">(
</span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">boolean
</span></li>
386 <ul class=
"tsd-descriptions">
387 <li class=
"tsd-description">
388 <aside class=
"tsd-sources">
390 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/thread/fixed.ts#L92">src/pools/thread/fixed.ts:
92</a></li>
393 <div class=
"tsd-comment tsd-typography">
394 <dl class=
"tsd-comment-tags">
399 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">boolean
</span></h4>
403 <section class=
"tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
404 <a name=
"numberofrunningtasks" class=
"tsd-anchor"></a>
405 <h3>number
<wbr>OfRunning
<wbr>Tasks
</h3>
406 <ul class=
"tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
407 <li class=
"tsd-signature tsd-kind-icon"><span class=
"tsd-signature-symbol">get
</span> numberOfRunningTasks
<span class=
"tsd-signature-symbol">(
</span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">number
</span></li>
409 <ul class=
"tsd-descriptions">
410 <li class=
"tsd-description">
411 <aside class=
"tsd-sources">
413 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L232">src/pools/abstract-pool.ts:
232</a></li>
416 <div class=
"tsd-comment tsd-typography">
417 <dl class=
"tsd-comment-tags">
422 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">number
</span></h4>
426 <section class=
"tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
427 <a name=
"type" class=
"tsd-anchor"></a>
429 <ul class=
"tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
430 <li class=
"tsd-signature tsd-kind-icon"><span class=
"tsd-signature-symbol">get
</span> type
<span class=
"tsd-signature-symbol">(
</span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">PoolType
</span></li>
432 <ul class=
"tsd-descriptions">
433 <li class=
"tsd-description">
434 <aside class=
"tsd-sources">
436 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/thread/fixed.ts#L87">src/pools/thread/fixed.ts:
87</a></li>
439 <div class=
"tsd-comment tsd-typography">
440 <dl class=
"tsd-comment-tags">
445 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">PoolType
</span></h4>
450 <section class=
"tsd-panel-group tsd-member-group ">
452 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
453 <a name=
"afterworkersetup" class=
"tsd-anchor"></a>
454 <h3><span class=
"tsd-flag ts-flagProtected">Protected
</span> after
<wbr>Worker
<wbr>Setup
</h3>
455 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
456 <li class=
"tsd-signature tsd-kind-icon">after
<wbr>Worker
<wbr>Setup
<span class=
"tsd-signature-symbol">(
</span>worker
<span class=
"tsd-signature-symbol">:
</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">void
</span></li>
458 <ul class=
"tsd-descriptions">
459 <li class=
"tsd-description">
460 <aside class=
"tsd-sources">
462 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/thread/fixed.ts#L77">src/pools/thread/fixed.ts:
77</a></li>
465 <h4 class=
"tsd-parameters-title">Parameters
</h4>
466 <ul class=
"tsd-parameters">
468 <h5>worker:
<a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a></h5>
471 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">void
</span></h4>
475 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
476 <a name=
"chooseworker" class=
"tsd-anchor"></a>
477 <h3><span class=
"tsd-flag ts-flagProtected">Protected
</span> choose
<wbr>Worker
</h3>
478 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
479 <li class=
"tsd-signature tsd-kind-icon">choose
<wbr>Worker
<span class=
"tsd-signature-symbol">(
</span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a></li>
481 <ul class=
"tsd-descriptions">
482 <li class=
"tsd-description">
483 <aside class=
"tsd-sources">
485 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L356">src/pools/abstract-pool.ts:
356</a></li>
488 <div class=
"tsd-comment tsd-typography">
490 <p>Choose a worker for the next task.
</p>
492 <p>The default implementation uses a round robin algorithm to distribute the load.
</p>
494 <h4 class=
"tsd-returns-title">Returns
<a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a></h4>
499 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
500 <a name=
"createandsetupworker" class=
"tsd-anchor"></a>
501 <h3><span class=
"tsd-flag ts-flagProtected">Protected
</span> create
<wbr>And
<wbr>Setup
<wbr>Worker
</h3>
502 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
503 <li class=
"tsd-signature tsd-kind-icon">create
<wbr>And
<wbr>Setup
<wbr>Worker
<span class=
"tsd-signature-symbol">(
</span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a></li>
505 <ul class=
"tsd-descriptions">
506 <li class=
"tsd-description">
507 <aside class=
"tsd-sources">
509 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L409">src/pools/abstract-pool.ts:
409</a></li>
512 <div class=
"tsd-comment tsd-typography">
514 <p>Creates a new worker for this pool and sets it up completely.
</p>
517 <h4 class=
"tsd-returns-title">Returns
<a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a></h4>
518 <p>New, completely set up worker.
</p>
522 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
523 <a name=
"createworker" class=
"tsd-anchor"></a>
524 <h3><span class=
"tsd-flag ts-flagProtected">Protected
</span> create
<wbr>Worker
</h3>
525 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
526 <li class=
"tsd-signature tsd-kind-icon">create
<wbr>Worker
<span class=
"tsd-signature-symbol">(
</span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a></li>
528 <ul class=
"tsd-descriptions">
529 <li class=
"tsd-description">
530 <aside class=
"tsd-sources">
532 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/thread/fixed.ts#L71">src/pools/thread/fixed.ts:
71</a></li>
535 <h4 class=
"tsd-returns-title">Returns
<a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a></h4>
539 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
540 <a name=
"decreaseworkerstasks" class=
"tsd-anchor"></a>
541 <h3><span class=
"tsd-flag ts-flagProtected">Protected
</span> decrease
<wbr>Workers
<wbr>Tasks
</h3>
542 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
543 <li class=
"tsd-signature tsd-kind-icon">decrease
<wbr>Workers
<wbr>Tasks
<span class=
"tsd-signature-symbol">(
</span>worker
<span class=
"tsd-signature-symbol">:
</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">void
</span></li>
545 <ul class=
"tsd-descriptions">
546 <li class=
"tsd-description">
547 <aside class=
"tsd-sources">
549 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L318">src/pools/abstract-pool.ts:
318</a></li>
552 <div class=
"tsd-comment tsd-typography">
554 <p>Decrease the number of tasks that the given workers has applied.
</p>
557 <h4 class=
"tsd-parameters-title">Parameters
</h4>
558 <ul class=
"tsd-parameters">
560 <h5>worker:
<a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a></h5>
561 <div class=
"tsd-comment tsd-typography">
562 <p>Worker whose tasks are decreased.
</p>
566 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">void
</span></h4>
570 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
571 <a name=
"destroy" class=
"tsd-anchor"></a>
573 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class">
574 <li class=
"tsd-signature tsd-kind-icon">destroy
<span class=
"tsd-signature-symbol">(
</span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">Promise
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">void
</span><span class=
"tsd-signature-symbol">></span></li>
576 <ul class=
"tsd-descriptions">
577 <li class=
"tsd-description">
578 <aside class=
"tsd-sources">
580 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L280">src/pools/abstract-pool.ts:
280</a></li>
583 <div class=
"tsd-comment tsd-typography">
584 <dl class=
"tsd-comment-tags">
589 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">Promise
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">void
</span><span class=
"tsd-signature-symbol">></span></h4>
593 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
594 <a name=
"destroyworker" class=
"tsd-anchor"></a>
595 <h3>destroy
<wbr>Worker
</h3>
596 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class">
597 <li class=
"tsd-signature tsd-kind-icon">destroy
<wbr>Worker
<span class=
"tsd-signature-symbol">(
</span>worker
<span class=
"tsd-signature-symbol">:
</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">Promise
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">void
</span><span class=
"tsd-signature-symbol">></span></li>
599 <ul class=
"tsd-descriptions">
600 <li class=
"tsd-description">
601 <aside class=
"tsd-sources">
603 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/thread/fixed.ts#L49">src/pools/thread/fixed.ts:
49</a></li>
606 <div class=
"tsd-comment tsd-typography">
607 <dl class=
"tsd-comment-tags">
612 <h4 class=
"tsd-parameters-title">Parameters
</h4>
613 <ul class=
"tsd-parameters">
615 <h5>worker:
<a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a></h5>
618 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">Promise
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">void
</span><span class=
"tsd-signature-symbol">></span></h4>
622 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
623 <a name=
"execute" class=
"tsd-anchor"></a>
625 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class">
626 <li class=
"tsd-signature tsd-kind-icon">execute
<span class=
"tsd-signature-symbol">(
</span>data
<span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">Data
</span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">Promise
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">Response
</span><span class=
"tsd-signature-symbol">></span></li>
628 <ul class=
"tsd-descriptions">
629 <li class=
"tsd-description">
630 <aside class=
"tsd-sources">
632 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L268">src/pools/abstract-pool.ts:
268</a></li>
635 <div class=
"tsd-comment tsd-typography">
636 <dl class=
"tsd-comment-tags">
641 <h4 class=
"tsd-parameters-title">Parameters
</h4>
642 <ul class=
"tsd-parameters">
644 <h5>data:
<span class=
"tsd-signature-type">Data
</span></h5>
647 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">Promise
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">Response
</span><span class=
"tsd-signature-symbol">></span></h4>
651 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
652 <a name=
"findfreetasksmapentry" class=
"tsd-anchor"></a>
653 <h3>find
<wbr>Free
<wbr>Tasks
<wbr>Map
<wbr>Entry
</h3>
654 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class">
655 <li class=
"tsd-signature tsd-kind-icon">find
<wbr>Free
<wbr>Tasks
<wbr>Map
<wbr>Entry
<span class=
"tsd-signature-symbol">(
</span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">false
</span><span class=
"tsd-signature-symbol"> |
</span><span class=
"tsd-signature-symbol">[
</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">number
</span><span class=
"tsd-signature-symbol">]
</span></li>
657 <ul class=
"tsd-descriptions">
658 <li class=
"tsd-description">
659 <aside class=
"tsd-sources">
661 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L257">src/pools/abstract-pool.ts:
257</a></li>
664 <div class=
"tsd-comment tsd-typography">
665 <dl class=
"tsd-comment-tags">
670 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">false
</span><span class=
"tsd-signature-symbol"> |
</span><span class=
"tsd-signature-symbol">[
</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">number
</span><span class=
"tsd-signature-symbol">]
</span></h4>
674 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
675 <a name=
"increaseworkerstask" class=
"tsd-anchor"></a>
676 <h3><span class=
"tsd-flag ts-flagProtected">Protected
</span> increase
<wbr>Workers
<wbr>Task
</h3>
677 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
678 <li class=
"tsd-signature tsd-kind-icon">increase
<wbr>Workers
<wbr>Task
<span class=
"tsd-signature-symbol">(
</span>worker
<span class=
"tsd-signature-symbol">:
</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">void
</span></li>
680 <ul class=
"tsd-descriptions">
681 <li class=
"tsd-description">
682 <aside class=
"tsd-sources">
684 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L309">src/pools/abstract-pool.ts:
309</a></li>
687 <div class=
"tsd-comment tsd-typography">
689 <p>Increase the number of tasks that the given workers has applied.
</p>
692 <h4 class=
"tsd-parameters-title">Parameters
</h4>
693 <ul class=
"tsd-parameters">
695 <h5>worker:
<a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a></h5>
696 <div class=
"tsd-comment tsd-typography">
697 <p>Worker whose tasks are increased.
</p>
701 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">void
</span></h4>
705 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
706 <a name=
"internalexecute" class=
"tsd-anchor"></a>
707 <h3><span class=
"tsd-flag ts-flagProtected">Protected
</span> internal
<wbr>Execute
</h3>
708 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
709 <li class=
"tsd-signature tsd-kind-icon">internal
<wbr>Execute
<span class=
"tsd-signature-symbol">(
</span>worker
<span class=
"tsd-signature-symbol">:
</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a>, messageId
<span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">number
</span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">Promise
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">Response
</span><span class=
"tsd-signature-symbol">></span></li>
711 <ul class=
"tsd-descriptions">
712 <li class=
"tsd-description">
713 <aside class=
"tsd-sources">
715 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L381">src/pools/abstract-pool.ts:
381</a></li>
718 <h4 class=
"tsd-parameters-title">Parameters
</h4>
719 <ul class=
"tsd-parameters">
721 <h5>worker:
<a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a></h5>
724 <h5>messageId:
<span class=
"tsd-signature-type">number
</span></h5>
727 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">Promise
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">Response
</span><span class=
"tsd-signature-symbol">></span></h4>
731 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
732 <a name=
"internalgetbusystatus" class=
"tsd-anchor"></a>
733 <h3><span class=
"tsd-flag ts-flagProtected">Protected
</span> internal
<wbr>Get
<wbr>Busy
<wbr>Status
</h3>
734 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
735 <li class=
"tsd-signature tsd-kind-icon">internal
<wbr>Get
<wbr>Busy
<wbr>Status
<span class=
"tsd-signature-symbol">(
</span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">boolean
</span></li>
737 <ul class=
"tsd-descriptions">
738 <li class=
"tsd-description">
739 <aside class=
"tsd-sources">
741 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L249">src/pools/abstract-pool.ts:
249</a></li>
744 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">boolean
</span></h4>
748 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
749 <a name=
"ismain" class=
"tsd-anchor"></a>
750 <h3><span class=
"tsd-flag ts-flagProtected">Protected
</span> is
<wbr>Main
</h3>
751 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
752 <li class=
"tsd-signature tsd-kind-icon">is
<wbr>Main
<span class=
"tsd-signature-symbol">(
</span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">boolean
</span></li>
754 <ul class=
"tsd-descriptions">
755 <li class=
"tsd-description">
756 <aside class=
"tsd-sources">
758 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/thread/fixed.ts#L44">src/pools/thread/fixed.ts:
44</a></li>
761 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">boolean
</span></h4>
765 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
766 <a name=
"registerworkermessagelistener" class=
"tsd-anchor"></a>
767 <h3>register
<wbr>Worker
<wbr>Message
<wbr>Listener
</h3>
768 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
769 <li class=
"tsd-signature tsd-kind-icon">register
<wbr>Worker
<wbr>Message
<wbr>Listener
<Message
><span class=
"tsd-signature-symbol">(
</span>messageChannel
<span class=
"tsd-signature-symbol">:
</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a>, listener
<span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-symbol">(
</span>message
<span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">MessageValue
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">Message
</span><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">unknown
</span><span class=
"tsd-signature-symbol">></span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol"> =
> </span><span class=
"tsd-signature-type">void
</span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">void
</span></li>
771 <ul class=
"tsd-descriptions">
772 <li class=
"tsd-description">
773 <aside class=
"tsd-sources">
775 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/thread/fixed.ts#L64">src/pools/thread/fixed.ts:
64</a></li>
778 <div class=
"tsd-comment tsd-typography">
779 <dl class=
"tsd-comment-tags">
784 <h4 class=
"tsd-type-parameters-title">Type parameters
</h4>
785 <ul class=
"tsd-type-parameters">
790 <h4 class=
"tsd-parameters-title">Parameters
</h4>
791 <ul class=
"tsd-parameters">
793 <h5>messageChannel:
<a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a></h5>
796 <h5>listener:
<span class=
"tsd-signature-symbol">(
</span>message
<span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">MessageValue
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">Message
</span><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">unknown
</span><span class=
"tsd-signature-symbol">></span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol"> =
> </span><span class=
"tsd-signature-type">void
</span></h5>
797 <ul class=
"tsd-parameters">
798 <li class=
"tsd-parameter-signature">
799 <ul class=
"tsd-signatures tsd-kind-type-literal">
800 <li class=
"tsd-signature tsd-kind-icon"><span class=
"tsd-signature-symbol">(
</span>message
<span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">MessageValue
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">Message
</span><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">unknown
</span><span class=
"tsd-signature-symbol">></span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">void
</span></li>
802 <ul class=
"tsd-descriptions">
803 <li class=
"tsd-description">
804 <h4 class=
"tsd-parameters-title">Parameters
</h4>
805 <ul class=
"tsd-parameters">
807 <h5>message:
<span class=
"tsd-signature-type">MessageValue
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">Message
</span><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">unknown
</span><span class=
"tsd-signature-symbol">></span></h5>
810 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">void
</span></h4>
817 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">void
</span></h4>
821 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
822 <a name=
"removeworker" class=
"tsd-anchor"></a>
823 <h3><span class=
"tsd-flag ts-flagProtected">Protected
</span> remove
<wbr>Worker
</h3>
824 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
825 <li class=
"tsd-signature tsd-kind-icon">remove
<wbr>Worker
<span class=
"tsd-signature-symbol">(
</span>worker
<span class=
"tsd-signature-symbol">:
</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">void
</span></li>
827 <ul class=
"tsd-descriptions">
828 <li class=
"tsd-description">
829 <aside class=
"tsd-sources">
831 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L342">src/pools/abstract-pool.ts:
342</a></li>
834 <div class=
"tsd-comment tsd-typography">
836 <p>Removes the given worker from the pool.
</p>
839 <h4 class=
"tsd-parameters-title">Parameters
</h4>
840 <ul class=
"tsd-parameters">
842 <h5>worker:
<a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a></h5>
843 <div class=
"tsd-comment tsd-typography">
844 <p>Worker that will be removed.
</p>
848 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">void
</span></h4>
852 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
853 <a name=
"sendtoworker" class=
"tsd-anchor"></a>
854 <h3><span class=
"tsd-flag ts-flagProtected">Protected
</span> send
<wbr>ToWorker
</h3>
855 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
856 <li class=
"tsd-signature tsd-kind-icon">send
<wbr>ToWorker
<span class=
"tsd-signature-symbol">(
</span>worker
<span class=
"tsd-signature-symbol">:
</span><a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a>, message
<span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">MessageValue
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">Data
</span><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">unknown
</span><span class=
"tsd-signature-symbol">></span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">void
</span></li>
858 <ul class=
"tsd-descriptions">
859 <li class=
"tsd-description">
860 <aside class=
"tsd-sources">
862 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/thread/fixed.ts#L56">src/pools/thread/fixed.ts:
56</a></li>
865 <h4 class=
"tsd-parameters-title">Parameters
</h4>
866 <ul class=
"tsd-parameters">
868 <h5>worker:
<a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-signature-type" data-tsd-kind=
"Type alias">ThreadWorkerWithMessageChannel
</a></h5>
871 <h5>message:
<span class=
"tsd-signature-type">MessageValue
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">Data
</span><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">unknown
</span><span class=
"tsd-signature-symbol">></span></h5>
874 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">void
</span></h4>
878 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
879 <a name=
"setworkerchoicestrategy" class=
"tsd-anchor"></a>
880 <h3>set
<wbr>Worker
<wbr>Choice
<wbr>Strategy
</h3>
881 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class">
882 <li class=
"tsd-signature tsd-kind-icon">set
<wbr>Worker
<wbr>Choice
<wbr>Strategy
<span class=
"tsd-signature-symbol">(
</span>workerChoiceStrategy
<span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">"ROUND_ROBIN
"</span><span class=
"tsd-signature-symbol"> |
</span><span class=
"tsd-signature-type">"LESS_RECENTLY_USED
"</span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">void
</span></li>
884 <ul class=
"tsd-descriptions">
885 <li class=
"tsd-description">
886 <aside class=
"tsd-sources">
888 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L237">src/pools/abstract-pool.ts:
237</a></li>
891 <div class=
"tsd-comment tsd-typography">
892 <dl class=
"tsd-comment-tags">
897 <h4 class=
"tsd-parameters-title">Parameters
</h4>
898 <ul class=
"tsd-parameters">
900 <h5>workerChoiceStrategy:
<span class=
"tsd-signature-type">"ROUND_ROBIN
"</span><span class=
"tsd-signature-symbol"> |
</span><span class=
"tsd-signature-type">"LESS_RECENTLY_USED
"</span></h5>
903 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">void
</span></h4>
907 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
908 <a name=
"setuphook" class=
"tsd-anchor"></a>
909 <h3><span class=
"tsd-flag ts-flagProtected">Protected
</span> setup
<wbr>Hook
</h3>
910 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
911 <li class=
"tsd-signature tsd-kind-icon">setup
<wbr>Hook
<span class=
"tsd-signature-symbol">(
</span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">void
</span></li>
913 <ul class=
"tsd-descriptions">
914 <li class=
"tsd-description">
915 <aside class=
"tsd-sources">
917 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L295">src/pools/abstract-pool.ts:
295</a></li>
920 <div class=
"tsd-comment tsd-typography">
922 <p>Setup hook that can be overridden by a Poolifier pool implementation
923 to run code before workers are created in the abstract constructor.
</p>
926 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">void
</span></h4>
930 <section class=
"tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
931 <a name=
"workerlistener" class=
"tsd-anchor"></a>
932 <h3><span class=
"tsd-flag ts-flagProtected">Protected
</span> worker
<wbr>Listener
</h3>
933 <ul class=
"tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
934 <li class=
"tsd-signature tsd-kind-icon">worker
<wbr>Listener
<span class=
"tsd-signature-symbol">(
</span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-symbol">(
</span>message
<span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">MessageValue
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">Response
</span><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">unknown
</span><span class=
"tsd-signature-symbol">></span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol"> =
> </span><span class=
"tsd-signature-type">void
</span></li>
936 <ul class=
"tsd-descriptions">
937 <li class=
"tsd-description">
938 <aside class=
"tsd-sources">
940 <li>Defined in
<a href=
"https://github.com/pioardi/poolifier/blob/36b71cf/src/pools/abstract-pool.ts#L432">src/pools/abstract-pool.ts:
432</a></li>
943 <div class=
"tsd-comment tsd-typography">
945 <p>This function is the listener registered for each worker.
</p>
948 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-symbol">(
</span>message
<span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">MessageValue
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">Response
</span><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">unknown
</span><span class=
"tsd-signature-symbol">></span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol"> =
> </span><span class=
"tsd-signature-type">void
</span></h4>
949 <p>The listener function to execute when a message is sent from a worker.
</p>
950 <ul class=
"tsd-parameters">
951 <li class=
"tsd-parameter-signature">
952 <ul class=
"tsd-signatures tsd-kind-type-literal">
953 <li class=
"tsd-signature tsd-kind-icon"><span class=
"tsd-signature-symbol">(
</span>message
<span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">MessageValue
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">Response
</span><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">unknown
</span><span class=
"tsd-signature-symbol">></span><span class=
"tsd-signature-symbol">)
</span><span class=
"tsd-signature-symbol">:
</span><span class=
"tsd-signature-type">void
</span></li>
955 <ul class=
"tsd-descriptions">
956 <li class=
"tsd-description">
957 <h4 class=
"tsd-parameters-title">Parameters
</h4>
958 <ul class=
"tsd-parameters">
960 <h5>message:
<span class=
"tsd-signature-type">MessageValue
</span><span class=
"tsd-signature-symbol"><</span><span class=
"tsd-signature-type">Response
</span><span class=
"tsd-signature-symbol">,
</span><span class=
"tsd-signature-type">unknown
</span><span class=
"tsd-signature-symbol">></span></h5>
963 <h4 class=
"tsd-returns-title">Returns
<span class=
"tsd-signature-type">void
</span></h4>
973 <div class=
"col-4 col-menu menu-sticky-wrap menu-highlight">
974 <nav class=
"tsd-navigation primary">
977 <a href=
"../index.html">Exports
</a>
981 <nav class=
"tsd-navigation secondary menu-sticky">
982 <ul class=
"before-current">
983 <li class=
" tsd-kind-class tsd-has-type-parameter">
984 <a href=
"abstractworker.html" class=
"tsd-kind-icon">Abstract
<wbr>Worker
</a>
986 <li class=
" tsd-kind-class tsd-has-type-parameter">
987 <a href=
"clusterworker.html" class=
"tsd-kind-icon">Cluster
<wbr>Worker
</a>
989 <li class=
" tsd-kind-class tsd-has-type-parameter">
990 <a href=
"dynamicclusterpool.html" class=
"tsd-kind-icon">Dynamic
<wbr>Cluster
<wbr>Pool
</a>
992 <li class=
" tsd-kind-class tsd-has-type-parameter">
993 <a href=
"dynamicthreadpool.html" class=
"tsd-kind-icon">Dynamic
<wbr>Thread
<wbr>Pool
</a>
995 <li class=
" tsd-kind-class tsd-has-type-parameter">
996 <a href=
"fixedclusterpool.html" class=
"tsd-kind-icon">Fixed
<wbr>Cluster
<wbr>Pool
</a>
1000 <li class=
"current tsd-kind-class tsd-has-type-parameter">
1001 <a href=
"fixedthreadpool.html" class=
"tsd-kind-icon">Fixed
<wbr>Thread
<wbr>Pool
</a>
1003 <li class=
" tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter">
1004 <a href=
"fixedthreadpool.html#constructor" class=
"tsd-kind-icon">constructor
</a>
1006 <li class=
" tsd-kind-property tsd-parent-kind-class">
1007 <a href=
"fixedthreadpool.html#emitter" class=
"tsd-kind-icon">emitter
</a>
1009 <li class=
" tsd-kind-property tsd-parent-kind-class">
1010 <a href=
"fixedthreadpool.html#filepath" class=
"tsd-kind-icon">file
<wbr>Path
</a>
1012 <li class=
" tsd-kind-property tsd-parent-kind-class">
1013 <a href=
"fixedthreadpool.html#max" class=
"tsd-kind-icon">max
</a>
1015 <li class=
" tsd-kind-property tsd-parent-kind-class tsd-is-protected">
1016 <a href=
"fixedthreadpool.html#nextmessageid" class=
"tsd-kind-icon">next
<wbr>Message
<wbr>Id
</a>
1018 <li class=
" tsd-kind-property tsd-parent-kind-class">
1019 <a href=
"fixedthreadpool.html#numberofworkers" class=
"tsd-kind-icon">number
<wbr>OfWorkers
</a>
1021 <li class=
" tsd-kind-property tsd-parent-kind-class">
1022 <a href=
"fixedthreadpool.html#opts" class=
"tsd-kind-icon">opts
</a>
1024 <li class=
" tsd-kind-property tsd-parent-kind-class tsd-is-protected">
1025 <a href=
"fixedthreadpool.html#promisemap" class=
"tsd-kind-icon">promise
<wbr>Map
</a>
1027 <li class=
" tsd-kind-property tsd-parent-kind-class">
1028 <a href=
"fixedthreadpool.html#tasks" class=
"tsd-kind-icon">tasks
</a>
1030 <li class=
" tsd-kind-property tsd-parent-kind-class tsd-is-protected">
1031 <a href=
"fixedthreadpool.html#workerchoicestrategycontext" class=
"tsd-kind-icon">worker
<wbr>Choice
<wbr>Strategy
<wbr>Context
</a>
1033 <li class=
" tsd-kind-property tsd-parent-kind-class">
1034 <a href=
"fixedthreadpool.html#workers" class=
"tsd-kind-icon">workers
</a>
1036 <li class=
" tsd-kind-get-signature tsd-parent-kind-class">
1037 <a href=
"fixedthreadpool.html#busy" class=
"tsd-kind-icon">busy
</a>
1039 <li class=
" tsd-kind-get-signature tsd-parent-kind-class">
1040 <a href=
"fixedthreadpool.html#numberofrunningtasks" class=
"tsd-kind-icon">number
<wbr>OfRunning
<wbr>Tasks
</a>
1042 <li class=
" tsd-kind-get-signature tsd-parent-kind-class">
1043 <a href=
"fixedthreadpool.html#type" class=
"tsd-kind-icon">type
</a>
1045 <li class=
" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
1046 <a href=
"fixedthreadpool.html#afterworkersetup" class=
"tsd-kind-icon">after
<wbr>Worker
<wbr>Setup
</a>
1048 <li class=
" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
1049 <a href=
"fixedthreadpool.html#chooseworker" class=
"tsd-kind-icon">choose
<wbr>Worker
</a>
1051 <li class=
" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
1052 <a href=
"fixedthreadpool.html#createandsetupworker" class=
"tsd-kind-icon">create
<wbr>And
<wbr>Setup
<wbr>Worker
</a>
1054 <li class=
" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
1055 <a href=
"fixedthreadpool.html#createworker" class=
"tsd-kind-icon">create
<wbr>Worker
</a>
1057 <li class=
" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
1058 <a href=
"fixedthreadpool.html#decreaseworkerstasks" class=
"tsd-kind-icon">decrease
<wbr>Workers
<wbr>Tasks
</a>
1060 <li class=
" tsd-kind-method tsd-parent-kind-class">
1061 <a href=
"fixedthreadpool.html#destroy" class=
"tsd-kind-icon">destroy
</a>
1063 <li class=
" tsd-kind-method tsd-parent-kind-class">
1064 <a href=
"fixedthreadpool.html#destroyworker" class=
"tsd-kind-icon">destroy
<wbr>Worker
</a>
1066 <li class=
" tsd-kind-method tsd-parent-kind-class">
1067 <a href=
"fixedthreadpool.html#execute" class=
"tsd-kind-icon">execute
</a>
1069 <li class=
" tsd-kind-method tsd-parent-kind-class">
1070 <a href=
"fixedthreadpool.html#findfreetasksmapentry" class=
"tsd-kind-icon">find
<wbr>Free
<wbr>Tasks
<wbr>Map
<wbr>Entry
</a>
1072 <li class=
" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
1073 <a href=
"fixedthreadpool.html#increaseworkerstask" class=
"tsd-kind-icon">increase
<wbr>Workers
<wbr>Task
</a>
1075 <li class=
" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
1076 <a href=
"fixedthreadpool.html#internalexecute" class=
"tsd-kind-icon">internal
<wbr>Execute
</a>
1078 <li class=
" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
1079 <a href=
"fixedthreadpool.html#internalgetbusystatus" class=
"tsd-kind-icon">internal
<wbr>Get
<wbr>Busy
<wbr>Status
</a>
1081 <li class=
" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
1082 <a href=
"fixedthreadpool.html#ismain" class=
"tsd-kind-icon">is
<wbr>Main
</a>
1084 <li class=
" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
1085 <a href=
"fixedthreadpool.html#registerworkermessagelistener" class=
"tsd-kind-icon">register
<wbr>Worker
<wbr>Message
<wbr>Listener
</a>
1087 <li class=
" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
1088 <a href=
"fixedthreadpool.html#removeworker" class=
"tsd-kind-icon">remove
<wbr>Worker
</a>
1090 <li class=
" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
1091 <a href=
"fixedthreadpool.html#sendtoworker" class=
"tsd-kind-icon">send
<wbr>ToWorker
</a>
1093 <li class=
" tsd-kind-method tsd-parent-kind-class">
1094 <a href=
"fixedthreadpool.html#setworkerchoicestrategy" class=
"tsd-kind-icon">set
<wbr>Worker
<wbr>Choice
<wbr>Strategy
</a>
1096 <li class=
" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
1097 <a href=
"fixedthreadpool.html#setuphook" class=
"tsd-kind-icon">setup
<wbr>Hook
</a>
1099 <li class=
" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
1100 <a href=
"fixedthreadpool.html#workerlistener" class=
"tsd-kind-icon">worker
<wbr>Listener
</a>
1105 <ul class=
"after-current">
1106 <li class=
" tsd-kind-class tsd-has-type-parameter">
1107 <a href=
"threadworker.html" class=
"tsd-kind-icon">Thread
<wbr>Worker
</a>
1109 <li class=
" tsd-kind-interface">
1110 <a href=
"../interfaces/clusterpooloptions.html" class=
"tsd-kind-icon">Cluster
<wbr>Pool
<wbr>Options
</a>
1112 <li class=
" tsd-kind-interface tsd-has-type-parameter">
1113 <a href=
"../interfaces/ipool.html" class=
"tsd-kind-icon">IPool
</a>
1115 <li class=
" tsd-kind-interface">
1116 <a href=
"../interfaces/iworker.html" class=
"tsd-kind-icon">IWorker
</a>
1118 <li class=
" tsd-kind-interface tsd-has-type-parameter">
1119 <a href=
"../interfaces/pooloptions.html" class=
"tsd-kind-icon">Pool
<wbr>Options
</a>
1121 <li class=
" tsd-kind-interface">
1122 <a href=
"../interfaces/workeroptions.html" class=
"tsd-kind-icon">Worker
<wbr>Options
</a>
1124 <li class=
" tsd-kind-type-alias tsd-has-type-parameter">
1125 <a href=
"../index.html#errorhandler" class=
"tsd-kind-icon">Error
<wbr>Handler
</a>
1127 <li class=
" tsd-kind-type-alias tsd-has-type-parameter">
1128 <a href=
"../index.html#exithandler" class=
"tsd-kind-icon">Exit
<wbr>Handler
</a>
1130 <li class=
" tsd-kind-type-alias">
1131 <a href=
"../index.html#killbehavior" class=
"tsd-kind-icon">Kill
<wbr>Behavior
</a>
1133 <li class=
" tsd-kind-type-alias tsd-has-type-parameter">
1134 <a href=
"../index.html#onlinehandler" class=
"tsd-kind-icon">Online
<wbr>Handler
</a>
1136 <li class=
" tsd-kind-type-alias">
1137 <a href=
"../index.html#threadworkerwithmessagechannel" class=
"tsd-kind-icon">Thread
<wbr>Worker
<wbr>With
<wbr>Message
<wbr>Channel
</a>
1139 <li class=
" tsd-kind-type-alias">
1140 <a href=
"../index.html#workerchoicestrategy" class=
"tsd-kind-icon">Worker
<wbr>Choice
<wbr>Strategy
</a>
1142 <li class=
" tsd-kind-variable">
1143 <a href=
"../index.html#killbehaviors" class=
"tsd-kind-icon">Kill
<wbr>Behaviors
</a>
1145 <li class=
" tsd-kind-variable">
1146 <a href=
"../index.html#workerchoicestrategies" class=
"tsd-kind-icon">Worker
<wbr>Choice
<wbr>Strategies
</a>
1153 <footer class=
"with-border-bottom">
1154 <div class=
"container">
1156 <div class=
"tsd-legend-group">
1157 <ul class=
"tsd-legend">
1158 <li class=
"tsd-kind-property tsd-parent-kind-interface"><span class=
"tsd-kind-icon">Property
</span></li>
1159 <li class=
"tsd-kind-method tsd-parent-kind-interface"><span class=
"tsd-kind-icon">Method
</span></li>
1161 <ul class=
"tsd-legend">
1162 <li class=
"tsd-kind-property tsd-parent-kind-class"><span class=
"tsd-kind-icon">Property
</span></li>
1163 <li class=
"tsd-kind-method tsd-parent-kind-class"><span class=
"tsd-kind-icon">Method
</span></li>
1165 <ul class=
"tsd-legend">
1166 <li class=
"tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class=
"tsd-kind-icon">Inherited property
</span></li>
1167 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class=
"tsd-kind-icon">Inherited method
</span></li>
1169 <ul class=
"tsd-legend">
1170 <li class=
"tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class=
"tsd-kind-icon">Protected property
</span></li>
1171 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class=
"tsd-kind-icon">Protected method
</span></li>
1173 <ul class=
"tsd-legend">
1174 <li class=
"tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class=
"tsd-kind-icon">Private method
</span></li>
1179 <div class=
"container tsd-generator">
1180 <p>Generated using
<a href=
"https://typedoc.org/" target=
"_blank">TypeDoc
</a></p>
1182 <div class=
"overlay"></div>
1183 <script src=
"../assets/js/main.js"></script>