Class ConstantSpeculativeExecutionPolicy
A ISpeculativeExecutionPolicy that schedules a given number of speculative executions, separated by a fixed delay.
Inheritance
System.Object
ConstantSpeculativeExecutionPolicy
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dse
Assembly: Dse.dll
Syntax
public class ConstantSpeculativeExecutionPolicy : ISpeculativeExecutionPolicy, IDisposable
Constructors
ConstantSpeculativeExecutionPolicy(Int64, Int32)
Creates a new instance of a ISpeculativeExecutionPolicy that schedules a given number of speculative executions, separated by a fixed delay.
Declaration
public ConstantSpeculativeExecutionPolicy(long delay, int maxSpeculativeExecutions)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | delay | The constant delay in milliseconds between each speculative execution. Must be strictly positive. |
System.Int32 | maxSpeculativeExecutions | The number of speculative executions. Must be strictly positive. |
Properties
Delay
Declaration
public long Delay { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
MaxSpeculativeExecutions
Declaration
public int MaxSpeculativeExecutions { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Dispose()
Declaration
public void Dispose()
Initialize(ICluster)
Declaration
public void Initialize(ICluster cluster)
Parameters
Type | Name | Description |
---|---|---|
ICluster | cluster |
NewPlan(String, IStatement)
Declaration
public ISpeculativeExecutionPlan NewPlan(string keyspace, IStatement statement)
Parameters
Type | Name | Description |
---|---|---|
System.String | keyspace | |
IStatement | statement |
Returns
Type | Description |
---|---|
ISpeculativeExecutionPlan |
Implements
System.IDisposable