| ProtocolOptions Class |
Namespace: Cassandra
public class ProtocolOptions
The ProtocolOptions type exposes the following members.
| Name | Description | |
|---|---|---|
| ProtocolOptions |
Creates a new ProtocolOptions instance using the
DEFAULT_PORT.
| |
| ProtocolOptions(Int32) |
Creates a new ProtocolOptions instance using the provided port.
| |
| ProtocolOptions(Int32, SSLOptions) |
Creates a new ProtocolOptions instance using the provided port and SSL context.
|
| Name | Description | |
|---|---|---|
| SetCompression |
Sets the compression to use. Note that while this setting can be changed at any time, it will only apply to newly created connections. | |
| SetCustomCompressor |
Sets a custom compressor to be used for the compression type.
If specified, the compression type is mandatory.
If not specified the driver default compressor will be use for the compression type.
| |
| SetMaxProtocolVersion |
Sets the maximum protocol version to be used.
When set, it limits the maximum protocol version used to connect to the nodes.
Useful for using the driver against a cluster that contains nodes with different major/minor versions of Cassandra.
| |
| SetMaxSchemaAgreementWaitSeconds |
Sets the maximum time to wait for schema agreement before returning from a DDL query.
|
| Name | Description | |
|---|---|---|
| DefaultPort |
The default port for Cassandra __native__ binary protocol: 9042.
|
| Name | Description | |
|---|---|---|
| Compression |
Returns the compression used by the protocol. The default compression is Compression.SNAPPY. | |
| CustomCompressor |
Gets the custom compressor specified to be used for the compression type.
| |
| MaxProtocolVersion |
Gets the maximum protocol version to be used.
When set, it limits the maximum protocol version used to connect to the nodes.
Useful for using the driver against a cluster that contains nodes with different major/minor versions of Cassandra.
| |
| MaxSchemaAgreementWaitSeconds |
Gets the maximum time to wait for schema agreement before returning from a DDL query.
| |
| Port |
The port used to connect to the Cassandra hosts.
| |
| SslOptions |
Specified SSL options used to connect to the Cassandra hosts.
|