X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIWorkerChoiceStrategy.html;h=be964d02fcc61eb80a1a73f6f9066bf002831a3d;hb=f05afd162e34836a52c48b05781750e3421424d8;hp=865eab67b91415798941233acd6bb59875f478e5;hpb=938d9c678aa8e70e5642feffb90604cf25c993fe;p=poolifier.git diff --git a/docs/interfaces/IWorkerChoiceStrategy.html b/docs/interfaces/IWorkerChoiceStrategy.html index 865eab67..be964d02 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:146
  • @@ -31,16 +32,17 @@

    Properties

    - +
    choose: (() => number)

    Type declaration

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

    -

    Returns number

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

    Type declaration

    @@ -64,7 +68,7 @@
    -

    Returns boolean

    -
    - -
    requiredStatistics: RequiredStatistics
    -

    Required tasks usage statistics.

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

    Type declaration

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

    Type declaration

    @@ -116,15 +118,47 @@
  • opts: WorkerChoiceStrategyOptions

    The worker choice strategy options.

    -
  • -

    Returns void

    +
    + +
    taskStatisticsRequirements: TaskStatisticsRequirements
    +

    Tasks statistics requirements.

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

    Type declaration

    +
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:162
  • +
  • choose
  • +
  • remove
  • +
  • reset
  • +
  • setOptions
  • +
  • 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
  • +
  • Task
  • +
  • TaskError
  • +
  • TaskPerformance
  • +
  • TaskStatistics
  • +
  • TaskStatisticsRequirements
  • +
  • TasksQueueOptions
  • +
  • ThreadPoolOptions
  • +
  • WorkerChoiceStrategyOptions
  • +
  • WorkerNode
  • +
  • WorkerOptions
  • +
  • WorkerStatistics
  • +
  • WorkerUsage
  • +
  • Draft
  • +
  • ErrorHandler
  • +
  • ExitHandler
  • +
  • KillBehavior
  • +
  • Measurement
  • +
  • MessageHandler
  • +
  • OnlineHandler
  • +
  • PoolEvent
  • +
  • PoolType
  • +
  • TaskFunctions
  • +
  • ThreadWorkerWithMessageChannel
  • +
  • WorkerAsyncFunction
  • +
  • WorkerChoiceStrategy
  • +
  • WorkerFunction
  • +
  • WorkerSyncFunction
  • +
  • WorkerType
  • +
  • KillBehaviors
  • +
  • Measurements
  • +
  • PoolEvents
  • +
  • PoolTypes
  • +
  • WorkerChoiceStrategies
  • +
  • WorkerTypes
  • Generated using TypeDoc

    \ No newline at end of file