class InterleavedWeightedRoundRobinWorkerChoiceStrategy
implements IWorkerChoiceStrategy
import { InterleavedWeightedRoundRobinWorkerChoiceStrategy } from "https://deno.land/x/poolifier@v0.3.14/src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts";
Selects the next worker with an interleaved weighted round robin scheduling algorithm.
Constructors
new
InterleavedWeightedRoundRobinWorkerChoiceStrategy(pool: IPool<Worker, Data, Response>, opts?: WorkerChoiceStrategyOptions)Properties
readonly
taskStatisticsRequirements: TaskStatisticsRequirementsMethods
private
getRoundWeights(): number[]private
interleavedWeightedRoundRobinNextWorkerNodeId(): voidchoose(): number | undefined
remove(workerNodeKey: number): boolean
reset(): boolean
setOptions(opts: WorkerChoiceStrategyOptions | undefined): void
update(): boolean