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.
|
com.datastax.driver.dse |
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.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.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 |
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.
|
Modifier and Type | Method and Description |
---|---|
HostDistance |
DseLoadBalancingPolicy.distance(Host host) |