| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/poolifier/poolifier/master/docs/classes/src.FixedThreadPool.html | [Back] [Original] |
Type of data sent to the worker. This can only be structured-cloneable data.
Type of execution response. This can only be structured-cloneable data.
Constructs a new poolifier fixed thread pool.
Type of data sent to the worker. This can only be structured-cloneable data.
Type of execution response. This can only be structured-cloneable data.
Number of threads for this pool.
Path to an implementation of a ThreadWorker file, which can be relative or absolute.
Options for this fixed thread pool.
OptionalmaximumNumberOfThreads: numberThe maximum number of threads for this pool.
Overrides AbstractPool<Worker, Data, Response>.constructor
ProtecteddestroyingWhether the pool is destroying or not.
Inherited from AbstractPool.destroying
OptionalemitterInherited from AbstractPool.emitter
Protected ReadonlyfilePathPath to the worker file.
Inherited from AbstractPool.filePath
Protected Optional ReadonlymaximumNumberOfWorkersMaximum number of workers that this pool manages.
Inherited from AbstractPool.maximumNumberOfWorkers
Protected ReadonlyminimumNumberOfWorkersMinimum number of workers that this pool manages.
Inherited from AbstractPool.minimumNumberOfWorkers
Protected ReadonlyoptsOptions for the pool.
Inherited from AbstractPool.opts
ProtectedpromiseResponseMapThe task execution response promise map:
key: The message id of each submitted task.value: An object that contains task's worker node key, execution response promise resolve and reject callbacks, async resource.When we receive a message from the worker, we get a map entry with the promise resolve/reject bound to the message id.
Inherited from AbstractPool.promiseResponseMap
ProtectedstartedWhether the pool is started or not.
Inherited from AbstractPool.started
ProtectedstartingWhether the pool is starting or not.
Inherited from AbstractPool.starting
Protected OptionalworkerChoiceStrategiesContextWorker choice strategies context referencing worker choice algorithms implementation.
Inherited from AbstractPool.workerChoiceStrategiesContext
ReadonlyworkerNodesInherited from AbstractPool.workerNodes
ProtectedbackPressureWhether the pool is back pressured or not.
The pool back pressure boolean status.
Overrides AbstractPool.backPressure
ProtectedbusyWhether the pool is busy or not.
The pool busyness boolean status.
Overrides AbstractPool.busy
ProtectedtypeThe pool type.
If it is 'dynamic', it provides the max property.
Overrides AbstractPool.type
ProtectedworkerThe worker type.
Overrides AbstractPool.worker
Inherited from AbstractPool.addTaskFunction
ProtectedafterTaskExecutionHookHook executed after the worker task execution. Can be overridden.
The worker node key.
The received message.
Inherited from AbstractPool.afterTaskExecutionHook
ProtectedafterWorkerNodeSetupMethod hooked up after a worker node has been newly created. Can be overridden.
The newly created worker node key.
Inherited from AbstractPool.afterWorkerNodeSetup
ProtectedbeforeTaskExecutionHookHook executed before the worker task execution. Can be overridden.
Inherited from AbstractPool.beforeTaskExecutionHook
ProtectedcheckAndEmitDynamicWorkerCreationEventsEmits dynamic worker creation events.
Overrides AbstractPool.checkAndEmitDynamicWorkerCreationEvents
ProtectedcheckAndEmitDynamicWorkerDestructionEventsEmits dynamic worker destruction events.
Overrides AbstractPool.checkAndEmitDynamicWorkerDestructionEvents
ProtectedcreateAndSetupDynamicWorkerNodeCreates a new, completely set up dynamic worker node.
New, completely set up dynamic worker node key.
Inherited from AbstractPool.createAndSetupDynamicWorkerNode
ProtectedcreateAndSetupWorkerNodeCreates a new, completely set up worker node.
New, completely set up worker node key.
Inherited from AbstractPool.createAndSetupWorkerNode
ProtectedderegisterWorkerMessageListenerDeregisters a listener callback on the worker given its worker node key.
The worker node key.
The message listener callback.
Overrides AbstractPool.deregisterWorkerMessageListener
ProtecteddestroyWorkerNodeTerminates the worker node given its worker node key.
The worker node key.
Inherited from AbstractPool.destroyWorkerNode
OptionaltasksQueueOptions: TasksQueueOptionsInherited from AbstractPool.enableTasksQueue
Optionaldata: DataOptionalname: stringOptionalabortSignal: AbortSignalOptionaltransferList: readonly Transferable[]Inherited from AbstractPool.execute
ProtectedflagWorkerNodeAsNotReadyInherited from AbstractPool.flagWorkerNodeAsNotReady
ProtectedflushTasksQueueInherited from AbstractPool.flushTasksQueue
ProtectedgetWorkerInfoGets the worker information given its worker node key.
The worker node key.
The worker information.
Inherited from AbstractPool.getWorkerInfo
Inherited from AbstractPool.hasTaskFunction
ProtectedinternalBackPressureWhether the worker nodes are back pressured or not.
Worker nodes back pressure boolean status.
Inherited from AbstractPool.internalBackPressure
ProtectedinternalBusyWhether worker nodes are executing concurrently their tasks quota or not.
Worker nodes busyness boolean status.
Inherited from AbstractPool.internalBusy
ProtectedisMainReturns whether the worker is the main worker or not.
true if the worker is the main worker, false otherwise.
Overrides AbstractPool.isMain
Inherited from AbstractPool.listTaskFunctionsProperties
Optionalname: stringOptionalabortSignals: Iterable<AbortSignal, any, any>OptionaltransferList: readonly Transferable[]Inherited from AbstractPool.mapExecute
ProtectedregisterOnceWorkerMessageListenerRegisters once a listener callback on the worker given its worker node key.
The worker node key.
The message listener callback.
Overrides AbstractPool.registerOnceWorkerMessageListener
ProtectedregisterWorkerMessageListenerRegisters a listener callback on the worker given its worker node key.
The worker node key.
The message listener callback.
Overrides AbstractPool.registerWorkerMessageListener
Inherited from AbstractPool.removeTaskFunction
ProtectedsendStartupMessageToWorkerSends the startup message to worker given its worker node key.
The worker node key.
Overrides AbstractPool.sendStartupMessageToWorker
ProtectedsendToWorkerSends a message to worker given its worker node key.
The worker node key.
The message.
OptionaltransferList: readonly Transferable[]The optional array of transferable objects.
Overrides AbstractPool.sendToWorker
Inherited from AbstractPool.setDefaultTaskFunction
Inherited from AbstractPool.setTasksQueueOptions
ProtectedsetupHookSetup hook to execute code before worker nodes are created in the abstract constructor. Can be overridden.
Inherited from AbstractPool.setupHook
OptionalworkerChoiceStrategyOptions: WorkerChoiceStrategyOptionsInherited from AbstractPool.setWorkerChoiceStrategy
Inherited from AbstractPool.setWorkerChoiceStrategyOptions
ProtectedshallCreateDynamicWorkerConditions for dynamic worker creation.
Whether to create a dynamic worker or not.
Overrides AbstractPool.shallCreateDynamicWorker
Protected ReadonlyworkerMessageListenerThis method is the message listener registered on each worker.
The message received from the worker.
Inherited from AbstractPool.workerMessageListener
Generated using TypeDoc
| Web Proxy Viewer | New URL | Original Page |
A thread pool with a fixed number of threads.