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 |
PoolingOptions.setConnectionsPerHost(HostDistance distance,
int core,
int max)
Sets the core and maximum number of connections per host in one call.
|
PoolingOptions |
PoolingOptions.setCoreConnectionsPerHost(HostDistance distance,
int newCoreConnections)
Sets the core number of connections per host.
|
PoolingOptions |
PoolingOptions.setHeartbeatIntervalSeconds(int heartbeatIntervalSeconds)
Sets the heart beat interval, after which a message is sent on an idle connection to make sure it's still alive.
|
PoolingOptions |
PoolingOptions.setIdleTimeoutSeconds(int idleTimeoutSeconds)
Sets the timeout before an idle connection is removed.
|
PoolingOptions |
PoolingOptions.setInitializationExecutor(Executor initializationExecutor)
Sets the executor to use for connection initialization.
|
PoolingOptions |
PoolingOptions.setMaxConnectionsPerHost(HostDistance distance,
int newMaxConnections)
Sets the maximum number of connections per host.
|
PoolingOptions |
PoolingOptions.setMaxRequestsPerConnection(HostDistance distance,
int newMaxRequests)
Sets the maximum number of requests per connection.
|
PoolingOptions |
PoolingOptions.setMaxSimultaneousRequestsPerConnectionThreshold(HostDistance distance,
int newMaxSimultaneousRequests)
Deprecated.
this method has been renamed to
setNewConnectionThreshold(HostDistance, int) . This method calls the new one
internally, but you should use the new one in your code. |
PoolingOptions |
PoolingOptions.setMaxSimultaneousRequestsPerHostThreshold(HostDistance distance,
int newMaxRequests)
Deprecated.
this method has been renamed to
setMaxRequestsPerConnection(HostDistance, int) . This method calls the new one internally,
but you should use the new one in your code. |
PoolingOptions |
PoolingOptions.setMinSimultaneousRequestsPerConnectionThreshold(HostDistance distance,
int newMinSimultaneousRequests)
Deprecated.
this option isn't used anymore with the current pool resizing algorithm.
|
PoolingOptions |
PoolingOptions.setNewConnectionThreshold(HostDistance distance,
int newValue)
Sets the threshold that triggers the creation of a new connection to a host.
|
PoolingOptions |
PoolingOptions.setPoolTimeoutMillis(int poolTimeoutMillis)
Sets the timeout when trying to acquire a connection from a host's pool.
|
Modifier and Type | Method and Description |
---|---|
Configuration.Builder |
Configuration.Builder.withPoolingOptions(PoolingOptions poolingOptions)
Sets the pooling options for this cluster.
|
Cluster.Builder |
Cluster.Builder.withPoolingOptions(PoolingOptions options)
Sets the PoolingOptions to use for the newly created Cluster.
|
Copyright © 2012–2015. All rights reserved.