Package com.datastax.driver.core.policies
Policies that allow to control some of the behavior of the ScyllaDB Java driver.
-
Interface Summary Interface Description AddressTranslator Translates IP addresses received from Cassandra nodes into locally queriable addresses.ChainableLoadBalancingPolicy A load balancing policy that wraps another policy.ErrorAwarePolicy.ErrorFilter A filter for the errors considered byErrorAwarePolicy.LoadBalancingPolicy The policy that decides which Cassandra hosts to contact for each new query.ReconnectionPolicy Policy that decides how often the reconnection to a dead node is attempted.ReconnectionPolicy.ReconnectionSchedule Schedules reconnection attempts to a node.RetryPolicy A policy that defines a default behavior to adopt when a request fails.SpeculativeExecutionPolicy The policy that decides if the driver will send speculative queries to the next hosts when the current host takes too long to respond.SpeculativeExecutionPolicy.SpeculativeExecutionPlan A plan that governs speculative executions for a given query. -
Class Summary Class Description ConstantReconnectionPolicy A reconnection policy that waits a constant time between each reconnection attempt.ConstantSpeculativeExecutionPolicy ASpeculativeExecutionPolicythat schedules a given number of speculative executions, separated by a fixed delay.DCAwareRoundRobinPolicy A data-center aware Round-robin load balancing policy.DCAwareRoundRobinPolicy.Builder Helper class to build the policy.DefaultRetryPolicy The default retry policy.DowngradingConsistencyRetryPolicy Deprecated. as of version 3.5.0, this retry policy has been deprecated, and it will be removed in 4.0.0.EC2MultiRegionAddressTranslator AddressTranslatorimplementation for a multi-region EC2 deployment where clients are also deployed in EC2.ErrorAwarePolicy Chainable load balancing policy that filters out hosts based on their error rates.ErrorAwarePolicy.Builder Utility class to create aErrorAwarePolicy.ExponentialReconnectionPolicy A reconnection policy that waits exponentially longer between each reconnection attempt (but keeps a constant delay once a maximum delay is reached).FallthroughRetryPolicy A retry policy that never retries (nor ignores).HostFilterPolicy A load balancing policy wrapper that ensures that only hosts matching the predicate will ever be returned.IdempotenceAwareRetryPolicy Deprecated. As of version 3.1.0, the driver doesn't retry non-idempotent statements for write timeouts or unexpected errors anymore.IdentityTranslator The defaultAddressTranslatorused by the driver that do no translation.LatencyAwarePolicy A wrapper load balancing policy that adds latency awareness to a child policy.LatencyAwarePolicy.Builder Helper builder object to create a latency aware policy.LatencyAwarePolicy.Snapshot An immutable snapshot of the per-host scores (and stats in general) maintained byLatencyAwarePolicyto base its decision upon.LatencyAwarePolicy.Snapshot.Stats A snapshot of the statistics on a given host kept byLatencyAwarePolicy.LoggingRetryPolicy A retry policy that wraps another policy, logging the decision made by its sub-policy.NoSpeculativeExecutionPolicy ASpeculativeExecutionPolicythat never schedules speculative executions.PagingOptimizingLoadBalancingPolicy PercentileSpeculativeExecutionPolicy A policy that triggers speculative executions when the request to the current host is above a given percentile.Policies Policies configured for aClusterinstance.Policies.Builder A builder to create a newPoliciesobject.RackAwareRoundRobinPolicy A rack aware Round-robin load balancing policy.RackAwareRoundRobinPolicy.Builder Helper class to build the policy.RetryPolicy.RetryDecision A retry decision to adopt on a Cassandra exception (read/write timeout or unavailable exception).RoundRobinPolicy A Round-robin load balancing policy.TokenAwarePolicy A wrapper load balancing policy that adds token awareness to a child policy.WhiteListPolicy A load balancing policy wrapper that ensure that only hosts from a provided white list will ever be returned. -
Enum Summary Enum Description RetryPolicy.RetryDecision.Type The types of retry decisions.TokenAwarePolicy.ReplicaOrdering Strategies for replica ordering.