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)
Returns the number of simultaneous requests on a connection below which
connections in excess are reclaimed.
|
PoolingOptions |
PoolingOptions.setCoreConnectionsPerHost(HostDistance distance,
int coreConnections)
Sets the core number of connections per host.
|
PoolingOptions |
PoolingOptions.setMaxConnectionsPerHost(HostDistance distance,
int maxConnections)
Sets the maximum number of connections per host.
|
PoolingOptions |
PoolingOptions.setMaxSimultaneousRequestsPerConnectionThreshold(HostDistance distance,
int maxSimultaneousRequests)
Sets number of simultaneous requests on all connections to an host after
which more connections are created.
|
PoolingOptions |
PoolingOptions.setMinSimultaneousRequestsPerConnectionThreshold(HostDistance distance,
int minSimultaneousRequests)
Sets the number of simultaneous requests on a connection below which
connections in excess are reclaimed.
|
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 © 2014. All Rights Reserved.