Was this page helpful?
ConstantSpeculativeExecutionPolicy¶
policies/speculativeExecution~ConstantSpeculativeExecutionPolicy(delay, maxSpeculativeExecutions)
A SpeculativeExecutionPolicy that schedules a given number of speculative executions, separated by a fixed delay.
Constructor¶
new ConstantSpeculativeExecutionPolicy(delay, 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. |
Extends¶
- SpeculativeExecutionPolicy
Methods¶
getOptions()
Gets an associative array containing the policy options.