Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
com.datastax.driver.core.policies |
Policies that allow to control some of the behavior of the DataStax Java driver for Cassandra.
|
Modifier and Type | Method and Description |
---|---|
static HostDistance |
HostDistance.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HostDistance[] |
HostDistance.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
int |
PoolingOptions.getCoreConnectionsPerHost(HostDistance distance)
Returns the core number of connections per host.
|
int |
PoolingOptions.getMaxConnectionsPerHost(HostDistance distance)
Returns the maximum number of connections per host.
|
int |
PoolingOptions.getMaxSimultaneousRequestsPerConnectionThreshold(HostDistance distance)
Returns the number of simultaneous requests on all connections to an host after
which more connections are created.
|
int |
PoolingOptions.getMinSimultaneousRequestsPerConnectionThreshold(HostDistance distance)
Deprecated.
this option isn't used anymore with the current pool resizing algorithm.
|
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.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.
|
Modifier and Type | Method and Description |
---|---|
HostDistance |
TokenAwarePolicy.distance(Host host)
Return the HostDistance for the provided host.
|
HostDistance |
RoundRobinPolicy.distance(Host host)
Return the HostDistance for the provided host.
|
HostDistance |
LoadBalancingPolicy.distance(Host host)
Returns the distance assigned by this policy to the provided host.
|
HostDistance |
LatencyAwarePolicy.distance(Host host)
Returns the HostDistance for the provided host.
|
HostDistance |
HostFilterPolicy.distance(Host host)
Returns the distance assigned by this policy to the provided host.
|
HostDistance |
DCAwareRoundRobinPolicy.distance(Host host)
Return the HostDistance for the provided host.
|
Copyright © 2012–2015. All rights reserved.