Interface ISpeculativeExecutionPolicy
The policy that decides if the driver will send speculative queries to the next hosts when the current host takes too long to respond. only idempotent statements will be speculatively retried, see IsIdempotent for more information.
Inherited Members
System.IDisposable.Dispose()
Namespace: Dse
Assembly: Dse.dll
Syntax
public interface ISpeculativeExecutionPolicy : IDisposable
Methods
Initialize(ICluster)
Initializes the policy at cluster startup.
Declaration
void Initialize(ICluster cluster)
Parameters
Type | Name | Description |
---|---|---|
ICluster | cluster |
NewPlan(String, IStatement)
Returns the plan to use for a new query.
Declaration
ISpeculativeExecutionPlan NewPlan(string keyspace, IStatement statement)
Parameters
Type | Name | Description |
---|---|---|
System.String | keyspace | the currently logged keyspace |
IStatement | statement | the query for which to build a plan. |
Returns
Type | Description |
---|---|
ISpeculativeExecutionPlan |