Click or drag to resize
DseClusterBuilderWithMaxProtocolVersion Method (Byte)

Limits the maximum protocol version used to connect to the nodes, when it is not set protocol version used between the driver and the Cassandra cluster is negotiated upon establishing the first connection.

Useful for using the driver against a cluster that contains nodes with different major/minor versions of Cassandra. For example, preparing for a rolling upgrade of the Cluster.

Namespace: Dse
Assembly: Dse (in Dse.dll) Version: 2.2.0
Syntax
C#
public DseClusterBuilder WithMaxProtocolVersion(
	byte version
)

Parameters

version
Type: SystemByte

The native protocol version.

Different Cassandra versions support a range of protocol versions, for example:

- Cassandra 2.0 (DSE 4.0 – 4.6): Supports protocol versions 1 and 2.

- Cassandra 2.1 (DSE 4.7 – 4.8): Supports protocol versions 1, 2 and 3.

- Cassandra 2.2: Supports protocol versions 1, 2, 3 and 4.

- Cassandra 3.0: Supports protocol versions 3 and 4.

Return Value

Type: DseClusterBuilder
this instance
Remarks
Some Cassandra features are only available with a specific protocol version.
See Also