X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIWorkerChoiceStrategy.html;h=9b15be25327b4eecb011e693535a3c48d755cfb5;hb=ac2cb9e206b5e67cc52124eb334507f5dce230d5;hp=2b669bf377c0459a0c33bd8fba51cf7b37711c38;hpb=3bd6a82e43e11294af91bbd19647944ac740169e;p=poolifier.git diff --git a/docs/interfaces/IWorkerChoiceStrategy.html b/docs/interfaces/IWorkerChoiceStrategy.html index 2b669bf3..9b15be25 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,17 +32,19 @@

    Properties

    - -
    choose: (() => number)
    + +
    choose: (() => number)

    Type declaration

      @@ -51,12 +54,14 @@
    • 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)
    + +
    remove: ((workerNodeKey) => boolean)

    Type declaration

    -

    Returns boolean

    -
    - -
    requiredStatistics: RequiredStatistics
    -

    Required tasks usage statistics.

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

    Type declaration

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:172
  • - -
    setOptions: ((opts) => void)
    + +
    setOptions: ((opts) => void)

    Type declaration

    -

    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