Consistency levels, retry policies, reconnection policies, etc
Reconnection policy that waits constantly longer between each
reconnection attempt but keeps a constant delay once a maximum delay is
Delay should be given in milliseconds
Datacenter aware load balancing policy.
Like round-robin but over the nodes located in the same datacenter.
Nodes from other datacenters will be tried only if all requests to local nodes fail.
(exponential-reconnection-policy base-delay-ms max-delay-ms)
Reconnection policy that waits exponentially longer between each
reconnection attempt but keeps a constant delay once a maximum delay is reached.
Delays should be given in milliseconds
(forcing-prepared-statements & body)
Forces prepared statements for operations executed in the body
A retry policy that wraps another policy, logging the decision made by its sub-policy.
Round-robin load balancing policy. Picks nodes to execute requests on in order.
Takes a load balancing policy and makes it token-aware
(with-consistency-level consistency-level & body)
Executes a query with the given consistency level
(with-retry-policy retry-policy & body)
Executes a query with the given retry policy
(without-prepared-statements & body)
Disables prepared statements for operations executed in the body