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
Namespace: Cassandra
Assembly: Cassandra.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 |
---|---|---|
string | keyspace | the currently logged keyspace |
IStatement | statement | the query for which to build a plan. |
Returns
Type | Description |
---|---|
ISpeculativeExecutionPlan |