PoolingOptions ClassA C# client driver for Apache Cassandra
Options related to connection pooling.

The driver uses connections in an asynchronous way. Meaning that multiple requests can be submitted on the same connection at the same time. This means that the driver only needs to maintain a relatively small number of connections to each Cassandra host. These options allow to control how many connections are kept exactly.

For each host, the driver keeps a core amount of connections open at all time (PoolingOptions#getCoreConnectionsPerHost). If the utilisation of those connections reaches a configurable threshold (PoolingOptions#getMaxSimultaneousRequestsPerConnectionTreshold), more connections are created up to a configurable maximum number of connections (PoolingOptions#getMaxConnectionPerHost). Once more than core connections have been created, connections in excess are reclaimed if the utilisation of opened connections drops below the configured threshold (PoolingOptions#getMinSimultaneousRequestsPerConnectionTreshold).

Each of these parameters can be separately set for

and hosts (HostDistance). For hosts, the default for all those settings is 0 and cannot be changed.

Inheritance Hierarchy

OnlineSystem Object
  Cassandra PoolingOptions

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: (

public class PoolingOptions
See Also