feat: add pool runtime setters
[poolifier.git] / src / pools / selection-strategies / selection-strategies-types.ts
index 7fbe40f28fa3b5d9cc1b8e976a3f46ec45ed9974..f9a504351a4bbbe9d33bddc145c457a7ce27ef78 100644 (file)
@@ -41,6 +41,8 @@ export interface WorkerChoiceStrategyOptions {
 
 /**
  * Pool worker tasks usage statistics requirements.
+ *
+ * @internal
  */
 export interface RequiredStatistics {
   /**
@@ -79,4 +81,10 @@ export interface IWorkerChoiceStrategy {
    * @param workerNodeKey - The worker node key.
    */
   remove: (workerNodeKey: number) => boolean
+  /**
+   * Sets the worker choice strategy options.
+   *
+   * @param opts - The worker choice strategy options.
+   */
+  setOptions: (opts: WorkerChoiceStrategyOptions) => void
 }