Click or drag to resize

IExecutionProfileBuilder Interface

Builder that offers a fluent API to build execution profile instances.

Namespace:  Cassandra
Assembly:  Cassandra (in Cassandra.dll) Version: 3.11.0
Syntax
C#
public interface IExecutionProfileBuilder

The IExecutionProfileBuilder type exposes the following members.

Methods
  NameDescription
Public methodWithConsistencyLevel
Sets the
SerialConsistencyLevel
setting. See ConsistencyLevel for additional context on this setting.
Public methodWithLoadBalancingPolicy
Sets the load balancing policy. See ILoadBalancingPolicy for additional context on this setting. If no load balancing policy is set through this method, DefaultLoadBalancingPolicy will be used instead.
Public methodWithReadTimeoutMillis

Sets the

ReadTimeoutMillis
setting which is the per-host read timeout in milliseconds.

When setting this value, keep in mind the following:

- the timeout settings used on the Cassandra side (*_request_timeout_in_ms in cassandra.yaml) should be taken into account when picking a value for this read timeout. In particular, if this read timeout option is lower than Cassandra's timeout, the driver might assume that the host is not responsive and mark it down.

- the read timeout is only approximate and only control the timeout to one Cassandra host, not the full query.

Setting a value of 0 disables client read timeouts.
Public methodWithRetryPolicy
Sets the retry policy. See IRetryPolicy and IRetryPolicy for additional context on this setting. When the retry policy is not set with this method, the DefaultRetryPolicy will be used instead.
Public methodWithSerialConsistencyLevel
Sets the
SerialConsistencyLevel
setting. See ConsistencyLevel for additional context on this setting.
Public methodWithSpeculativeExecutionPolicy
Sets the speculative execution policy. See ISpeculativeExecutionPolicy for additional context on this setting. If no speculative execution policy is set through this method, DefaultSpeculativeExecutionPolicy will be used instead.
Top
See Also