X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIWorkerChoiceStrategy.html;h=a764fb77ba404398bea642edf38c44288742e475;hb=2a6631992868d900762f62e4c228dce4e4ee549a;hp=0471a27d296b3274e9cba7ab9102503f6741f5dd;hpb=3db6a2b42ee697b6f587b0f41020771941a65e68;p=poolifier.git diff --git a/docs/interfaces/IWorkerChoiceStrategy.html b/docs/interfaces/IWorkerChoiceStrategy.html index 0471a27d..a764fb77 100644 --- a/docs/interfaces/IWorkerChoiceStrategy.html +++ b/docs/interfaces/IWorkerChoiceStrategy.html @@ -17,13 +17,14 @@

Interface IWorkerChoiceStrategy

Worker choice strategy interface.

-
+ +

Hierarchy

+
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:158
  • @@ -31,16 +32,18 @@

    Properties

    - +
    choose: (() => number)

    Type declaration

    @@ -51,11 +54,13 @@
  • Chooses a worker node in the pool and returns its key.

    -

    Returns number

  • +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:184
  • - +
    remove: ((workerNodeKey) => boolean)

    Type declaration

    @@ -64,7 +69,7 @@
    -

    Returns boolean

    -
    - -
    requiredStatistics: RequiredStatistics
    -

    Required tasks usage statistics.

    -
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:191
  • - +
    reset: (() => boolean)

    Type declaration

    @@ -93,13 +94,15 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:172
  • - +
    setOptions: ((opts) => void)

    Type declaration

    @@ -116,15 +119,55 @@
  • opts: WorkerChoiceStrategyOptions

    The worker choice strategy options.

    -
  • -

    Returns void

    +
    + +
    strategyPolicy: StrategyPolicy
    +

    Strategy policy.

    +
    +
    +
    + +
    taskStatisticsRequirements: TaskStatisticsRequirements
    +

    Tasks statistics requirements.

    +
    +
    +
    + +
    update: ((workerNodeKey) => boolean)
    +
    +

    Type declaration

    +
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:178
  • +
  • choose
  • +
  • remove
  • +
  • reset
  • +
  • setOptions
  • +
  • strategyPolicy
  • +
  • taskStatisticsRequirements
  • +
  • update
  • +
  • AbstractPool
  • +
  • AbstractWorker
  • +
  • CircularArray
  • +
  • ClusterWorker
  • +
  • DynamicClusterPool
  • +
  • DynamicThreadPool
  • +
  • FixedClusterPool
  • +
  • FixedThreadPool
  • +
  • PoolEmitter
  • +
  • Queue
  • +
  • ThreadWorker
  • +
  • WorkerChoiceStrategyContext
  • +
  • ClusterPoolOptions
  • +
  • EventLoopUtilizationMeasurementStatistics
  • +
  • IPool
  • +
  • IWorker
  • +
  • IWorkerChoiceStrategy
  • +
  • MeasurementOptions
  • +
  • MeasurementStatistics
  • +
  • MeasurementStatisticsRequirements
  • +
  • MessageValue
  • +
  • PoolInfo
  • +
  • PoolOptions
  • +
  • PromiseResponseWrapper
  • +
  • StrategyPolicy
  • +
  • Task
  • +
  • TaskError
  • +
  • TaskPerformance
  • +
  • TaskStatistics
  • +
  • TaskStatisticsRequirements
  • +
  • TasksQueueOptions
  • +
  • ThreadPoolOptions
  • +
  • WorkerChoiceStrategyOptions
  • +
  • WorkerInfo
  • +
  • WorkerNode
  • +
  • WorkerOptions
  • +
  • WorkerStatistics
  • +
  • WorkerUsage
  • +
  • ErrorHandler
  • +
  • ExitHandler
  • +
  • KillBehavior
  • +
  • Measurement
  • +
  • MessageHandler
  • +
  • OnlineHandler
  • +
  • PoolEvent
  • +
  • PoolType
  • +
  • TaskFunctions
  • +
  • WorkerAsyncFunction
  • +
  • WorkerChoiceStrategy
  • +
  • WorkerFunction
  • +
  • WorkerSyncFunction
  • +
  • WorkerType
  • +
  • KillBehaviors
  • +
  • Measurements
  • +
  • PoolEvents
  • +
  • PoolTypes
  • +
  • WorkerChoiceStrategies
  • +
  • WorkerTypes
  • +
  • availableParallelism
  • Generated using TypeDoc

    \ No newline at end of file