Uses of Class
com.datastax.driver.core.HostDistance
-
Packages that use HostDistance Package Description com.datastax.driver.core The main package for the Java Driver for Cassandra.com.datastax.driver.core.policies Policies that allow to control some of the behavior of the ScyllaDB Java driver. -
-
Uses of HostDistance in com.datastax.driver.core
Methods in com.datastax.driver.core that return HostDistance Modifier and Type Method Description static HostDistanceHostDistance. 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 Modifier and Type Method Description intPoolingOptions. getCoreConnectionsPerHost(HostDistance distance)Returns the core number of connections per host.intPoolingOptions. getMaxConnectionsPerHost(HostDistance distance)Returns the maximum number of connections per host.intPoolingOptions. getMaxRequestsPerConnection(HostDistance distance)Returns the maximum number of requests per connection.intPoolingOptions. getNewConnectionThreshold(HostDistance distance)Returns the threshold that triggers the creation of a new connection to a host.PoolingOptionsPoolingOptions. setConnectionsPerHost(HostDistance distance, int core, int max)Sets the core and maximum number of connections per host in one call.PoolingOptionsPoolingOptions. setCoreConnectionsPerHost(HostDistance distance, int newCoreConnections)Sets the core number of connections per host.PoolingOptionsPoolingOptions. setMaxConnectionsPerHost(HostDistance distance, int newMaxConnections)Sets the maximum number of connections per host.PoolingOptionsPoolingOptions. setMaxRequestsPerConnection(HostDistance distance, int newMaxRequests)Sets the maximum number of requests per connection.PoolingOptionsPoolingOptions. setNewConnectionThreshold(HostDistance distance, int newValue)Sets the threshold that triggers the creation of a new connection to a host. -
Uses of HostDistance in com.datastax.driver.core.policies
Methods in com.datastax.driver.core.policies that return HostDistance Modifier and Type Method Description HostDistanceDCAwareRoundRobinPolicy. distance(Host host)Return the HostDistance for the provided host.HostDistanceErrorAwarePolicy. distance(Host host)HostDistanceHostFilterPolicy. distance(Host host)Returns the distance assigned by this policy to the provided host.HostDistanceLatencyAwarePolicy. distance(Host host)Returns the HostDistance for the provided host.HostDistanceLoadBalancingPolicy. distance(Host host)Returns the distance assigned by this policy to the provided host.HostDistancePagingOptimizingLoadBalancingPolicy. distance(Host host)HostDistanceRackAwareRoundRobinPolicy. distance(Host host)Return the HostDistance for the provided host.HostDistanceRoundRobinPolicy. distance(Host host)Return the HostDistance for the provided host.HostDistanceTokenAwarePolicy. distance(Host host)Returns the distance assigned by this policy to the provided host.
-