abstract module Cassandra::Retry::Policy
- Abstract
- Actual retry policies supplied as
:retry_policy
option toCassandra.cluster
don’t need to inherit this class, only implement its methods. This class exists for documentation purposes only.
Mixed into
Methods
read_timeout
(statement, consistency, required, received, retrieved, retries)Decides wether to retry a read and at what consistency level.
- Note
- this method may be called even if required_responses >= received responses if data_present is false.
write_timeout
(statement, consistency, type, required, received, retries)Decides wether to retry a write and at what consistency level.
unavailable
(statement, consistency, required, alive, retries)Decides wether to retry and at what consistency level on an Unavailable exception.
try_again
(consistency)Returns a decision that signals retry at a given consistency
reraise
Returns a decision that signals to driver to reraise original error to the application
ignore
Returns a decision that signals to driver to ignore the error