Click or drag to resize

DseLoadBalancingPolicy Constructor (String, Int32)

Note: This API is now obsolete.

Creates a new instance of DseLoadBalancingPolicy given the name of the local datacenter and the amount of host per remote datacenter to use for failover for the local hosts.

Namespace:  Dse
Assembly:  Dse (in Dse.dll) Version: 2.6.0
Syntax
C#
[ObsoleteAttribute("The usedHostsPerRemoteDc parameter will be removed in the next major release of the driver. DC failover should not be done in the driver, which does not have the necessary context to know what makes sense considering application semantics. See https://datastax-oss.atlassian.net/browse/CSHARP-722")]
public DseLoadBalancingPolicy(
	string localDc,
	int usedHostsPerRemoteDc
)

Parameters

localDc
Type: SystemString
The name of the local datacenter (case-sensitive)
usedHostsPerRemoteDc
Type: SystemInt32
The amount of host per remote datacenter that the policy should yield in a new query plan after the local nodes. Note that this parameter will be removed in the next major version of the driver.
See Also