|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use HostDistance | |
---|---|
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. |
Uses of HostDistance in com.datastax.driver.core |
---|
Methods in com.datastax.driver.core that return HostDistance | |
---|---|
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. |
Methods in com.datastax.driver.core with parameters of type HostDistance | |
---|---|
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. |
Uses of HostDistance in com.datastax.driver.core.policies |
---|
Methods in com.datastax.driver.core.policies that return HostDistance | |
---|---|
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 |
DCAwareRoundRobinPolicy.distance(Host host)
Return the HostDistance for the provided host. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |