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.setMaxQueueSize(int maxQueueSize)
Sets the maximum number of requests that get enqueued if no connection is available.
|
PoolingOptions |
PoolingOptions.setMaxRequestsPerConnection(HostDistance distance,
int newMaxRequests)
Sets the maximum number of requests per connection.
|
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–2018. All rights reserved.