Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
Modifier and Type | Method and Description |
---|---|
PoolingOptions |
Configuration.getPoolingOptions()
Returns the connection pooling configuration.
|
PoolingOptions |
Cluster.Builder.poolingOptions()
Deprecated.
you are now encouraged to use the
Cluster.Builder.withPoolingOptions(com.datastax.driver.core.PoolingOptions)
method. This method is deprecated and will be removed in the next major
version of the driver. |
PoolingOptions |
PoolingOptions.setCoreConnectionsPerHost(HostDistance distance,
int coreConnections)
Sets the core number of connections per host.
|
PoolingOptions |
PoolingOptions.setMaxConnectionsPerHost(HostDistance distance,
int maxConnections)
Sets the maximum number of connections per host.
|
PoolingOptions |
PoolingOptions.setMaxSimultaneousRequestsPerConnectionThreshold(HostDistance distance,
int maxSimultaneousRequests)
Sets number of simultaneous requests on all connections to an host after
which more connections are created.
|
PoolingOptions |
PoolingOptions.setMinSimultaneousRequestsPerConnectionThreshold(HostDistance distance,
int minSimultaneousRequests)
Sets the number of simultaneous requests on a connection below which
connections in excess are reclaimed.
|
Modifier and Type | Method and Description |
---|---|
Cluster.Builder |
Cluster.Builder.withPoolingOptions(PoolingOptions options)
Set the PoolingOptions to use for the newly created Cluster.
|
Constructor and Description |
---|
Configuration(Policies policies,
ProtocolOptions protocolOptions,
PoolingOptions poolingOptions,
SocketOptions socketOptions,
MetricsOptions metricsOptions)
Creates a configuration with the specified parameters.
|
Copyright © 2014. All Rights Reserved.