Uses of Interface
com.datastax.driver.core.policies.LoadBalancingPolicy
-
Packages that use LoadBalancingPolicy 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 LoadBalancingPolicy in com.datastax.driver.core
Methods in com.datastax.driver.core with parameters of type LoadBalancingPolicy Modifier and Type Method Description Cluster.BuilderCluster.Builder. withLoadBalancingPolicy(LoadBalancingPolicy policy)Configures the load balancing policy to use for the new cluster. -
Uses of LoadBalancingPolicy in com.datastax.driver.core.policies
Subinterfaces of LoadBalancingPolicy in com.datastax.driver.core.policies Modifier and Type Interface Description interfaceChainableLoadBalancingPolicyA load balancing policy that wraps another policy.Classes in com.datastax.driver.core.policies that implement LoadBalancingPolicy Modifier and Type Class Description classDCAwareRoundRobinPolicyA data-center aware Round-robin load balancing policy.classErrorAwarePolicyChainable load balancing policy that filters out hosts based on their error rates.classHostFilterPolicyA load balancing policy wrapper that ensures that only hosts matching the predicate will ever be returned.classLatencyAwarePolicyA wrapper load balancing policy that adds latency awareness to a child policy.classPagingOptimizingLoadBalancingPolicyclassRackAwareRoundRobinPolicyA rack aware Round-robin load balancing policy.classRoundRobinPolicyA Round-robin load balancing policy.classTokenAwarePolicyA wrapper load balancing policy that adds token awareness to a child policy.classWhiteListPolicyA load balancing policy wrapper that ensure that only hosts from a provided white list will ever be returned.Methods in com.datastax.driver.core.policies that return LoadBalancingPolicy Modifier and Type Method Description static LoadBalancingPolicyPolicies. defaultLoadBalancingPolicy()The default load balancing policy.LoadBalancingPolicyChainableLoadBalancingPolicy. getChildPolicy()Returns the child policy.LoadBalancingPolicyErrorAwarePolicy. getChildPolicy()LoadBalancingPolicyHostFilterPolicy. getChildPolicy()LoadBalancingPolicyLatencyAwarePolicy. getChildPolicy()LoadBalancingPolicyPagingOptimizingLoadBalancingPolicy. getChildPolicy()LoadBalancingPolicyTokenAwarePolicy. getChildPolicy()LoadBalancingPolicyPolicies. getLoadBalancingPolicy()The load balancing policy in use.Methods in com.datastax.driver.core.policies with parameters of type LoadBalancingPolicy Modifier and Type Method Description static ErrorAwarePolicy.BuilderErrorAwarePolicy. builder(LoadBalancingPolicy childPolicy)Creates a new error aware policy builder given the child policy that the resulting policy should wrap.static LatencyAwarePolicy.BuilderLatencyAwarePolicy. builder(LoadBalancingPolicy childPolicy)Creates a new latency aware policy builder given the child policy that the resulting policy should wrap.static HostFilterPolicyHostFilterPolicy. fromDCBlackList(LoadBalancingPolicy childPolicy, Iterable<String> dcs)Create a new policy that wraps the provided child policy but only "forbids" hosts whose DC belongs to the provided list.static HostFilterPolicyHostFilterPolicy. fromDCWhiteList(LoadBalancingPolicy childPolicy, Iterable<String> dcs)Create a new policy that wraps the provided child policy but only "allows" hosts whose DC belongs to the provided list.static WhiteListPolicyWhiteListPolicy. ofHosts(LoadBalancingPolicy childPolicy, Iterable<String> hostnames)Creates a new policy that wraps the provided child policy but only "allows" hosts having addresses that match those from the resolved input host names.static WhiteListPolicyWhiteListPolicy. ofHosts(LoadBalancingPolicy childPolicy, String... hostnames)Creates a new policy with the given host names.Policies.BuilderPolicies.Builder. withLoadBalancingPolicy(LoadBalancingPolicy loadBalancingPolicy)Sets the load balancing policy.Constructors in com.datastax.driver.core.policies with parameters of type LoadBalancingPolicy Constructor Description Builder(LoadBalancingPolicy childPolicy)Creates aErrorAwarePolicy.Builderinstance.Builder(LoadBalancingPolicy childPolicy)Creates a new latency aware policy builder given the child policy that the resulting policy wraps.HostFilterPolicy(LoadBalancingPolicy childPolicy, Predicate<Host> predicate)Create a new policy that wraps the provided child policy but only "allows" hosts matching the predicate.PagingOptimizingLoadBalancingPolicy(LoadBalancingPolicy loadBalancingPolicy)TokenAwarePolicy(LoadBalancingPolicy childPolicy)Creates a newTokenAwarepolicy withRANDOMreplica ordering.TokenAwarePolicy(LoadBalancingPolicy childPolicy, boolean shuffleReplicas)Deprecated.TokenAwarePolicy(LoadBalancingPolicy childPolicy, TokenAwarePolicy.ReplicaOrdering replicaOrdering)Creates a newTokenAwarepolicy.WhiteListPolicy(LoadBalancingPolicy childPolicy, Collection<InetSocketAddress> whiteList)Creates a new policy that wraps the provided child policy but only "allows" hosts from the provided white list.
-