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.setMaxSimultaneousRequestsPerConnectionThreshold(HostDistance distance,
int newMaxSimultaneousRequests)
Sets number of simultaneous requests on all connections to an host after
which more connections are created.
|
PoolingOptions |
PoolingOptions.setMinSimultaneousRequestsPerConnectionThreshold(HostDistance distance,
int newMinSimultaneousRequests)
Deprecated.
this option isn't used anymore with the current pool resizing algorithm.
|
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 |
---|---|
Cluster.Builder |
Cluster.Builder.withPoolingOptions(PoolingOptions options)
Sets the PoolingOptions to use for the newly created Cluster.
|
Constructor and Description |
---|
Configuration(Policies policies,
ProtocolOptions protocolOptions,
PoolingOptions poolingOptions,
SocketOptions socketOptions,
MetricsOptions metricsOptions,
QueryOptions queryOptions,
NettyOptions nettyOptions)
Creates a configuration with the specified parameters.
|
Copyright © 2012–2015. All rights reserved.