A SpeculativeExecutionPolicy that schedules a given number of speculative executions, separated by a fixed delay.

Augments

  • SpeculativeExecutionPolicy

Constructor

new

ConstantSpeculativeExecutionPolicy

(Number delay, Number maxSpeculativeExecutions)

Creates a new instance of ConstantSpeculativeExecutionPolicy.

Parameters:
Name Type Description
delay Number

The delay between each speculative execution.

maxSpeculativeExecutions Number

The amount of speculative executions that should be scheduled after the initial execution. Must be strictly positive.

Methods

getOptions

()

Gets an associative array containing the policy options.