PoolingOptions Methods |
The PoolingOptions type exposes the following members.
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetCoreConnectionsPerHost | The core number of connections per host. For the provided HostDistance, this correspond to the number of connections initially created and kept open to each host of that distance. | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetHeartBeatInterval |
Gets the amount of idle time in milliseconds that has to pass
before the driver issues a request on an active connection to avoid
idle time disconnections.
Remarks
A value of 0 or null means that the heartbeat
functionality at connection level is disabled.
| |
GetMaxConnectionPerHost |
The maximum number of connections per host. For the provided distance, this correspond to the maximum number of connections that can be created per host at that distance. | |
GetMaxSimultaneousRequestsPerConnectionTreshold | Number of simultaneous requests on all connections to an host after which more connections are created. If all the connections opened to an host at HostDistance connection are handling more than this number of simultaneous requests and there is less than GetMaxConnectionPerHost(HostDistance) connections open to this host, a new connection is open. | |
GetMinSimultaneousRequestsPerConnectionTreshold |
Number of simultaneous requests on a connection below which connections in
excess are reclaimed. If an opened connection to an host at distance distance handles less than this number of simultaneous requests and there is more than #GetCoreConnectionsPerHost connections open to this host, the connection is closed. The default value for this option is 25 for Local and Remote hosts. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
SetCoreConnectionsPerHost |
Sets the core number of connections per host.
| |
SetHeartBeatInterval |
Sets the amount of idle time in milliseconds that has to pass
before the driver issues a request on an active connection to avoid
idle time disconnections.
Remarks
When set to 0 the heartbeat functionality at connection
level is disabled.
| |
SetMaxConnectionsPerHost |
Sets the maximum number of connections per host.
| |
SetMaxSimultaneousRequestsPerConnectionTreshold |
Sets number of simultaneous requests on all connections to an host after
which more connections are created.
| |
SetMinSimultaneousRequestsPerConnectionTreshold |
Sets the number of simultaneous requests on a connection below which
connections in excess are reclaimed.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |