Was this page helpful?
Caution
You're viewing documentation for an unstable version of ScyllaDB Node.js Driver. Switch to the latest stable version.
NoSpeculativeExecutionPolicy¶
NoSpeculativeExecutionPolicy()
A SpeculativeExecutionPolicy that never schedules speculative executions.
Constructor¶
new NoSpeculativeExecutionPolicy()
Creates a new instance of NoSpeculativeExecutionPolicy.
Extends¶
Methods¶
getOptions()
Gets an associative array containing the policy options.
- Overrides:
(abstract) init()
Initialization method that gets invoked on Client startup.
- Overrides:
(abstract) newPlan(keyspace, queryInfo)
Gets the plan to use for a new query.
Returns an object with a nextExecution() method, which returns a positive number representing the
amount of milliseconds to delay the next execution or a non-negative number to avoid further executions.
Parameters:
| Name | Type | Description |
|---|---|---|
keyspace |
The currently logged keyspace. |
|
queryInfo |
The query, or queries in the case of batches, for which to build a plan. |
- Overrides:
(abstract) shutdown()
Gets invoked at client shutdown, giving the opportunity to the implementor to perform cleanup.
- Overrides: