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.getMaxRequestsPerConnection(HostDistance distance)
Returns the maximum number of requests per connection.
|
int |
PoolingOptions.getMaxSimultaneousRequestsPerConnectionThreshold(HostDistance distance)
Deprecated.
this method has been renamed to
PoolingOptions.getNewConnectionThreshold(HostDistance) . This method calls the new one internally,
but you should use the new one in your code. |
int |
PoolingOptions.getMaxSimultaneousRequestsPerHostThreshold(HostDistance distance)
Deprecated.
this method has been renamed to
PoolingOptions.getMaxRequestsPerConnection(HostDistance) . This method calls the new one internally,
but you should use the new one in your code. |
int |
PoolingOptions.getMinSimultaneousRequestsPerConnectionThreshold(HostDistance distance)
Deprecated.
this option isn't used anymore with the current pool resizing algorithm.
|
int |
PoolingOptions.getNewConnectionThreshold(HostDistance distance)
Returns the threshold that triggers the creation of a new connection to a host.
|
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.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
PoolingOptions.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
PoolingOptions.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.
|
Modifier and Type | Method and Description |
---|---|
HostDistance |
WhiteListPolicy.distance(Host host)
Return the HostDistance for the provided host.
|
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 |
DCAwareRoundRobinPolicy.distance(Host host)
Return the HostDistance for the provided host.
|
Copyright © 2012–2015. All rights reserved.