Trait scylla::transport::speculative_execution::SpeculativeExecutionPolicy[][src]

pub trait SpeculativeExecutionPolicy: Send + Sync {
    fn max_retry_count(&self, context: &Context) -> usize;
fn retry_interval(&self, context: &Context) -> Duration; }
Expand description

The policy that decides if the driver will send speculative queries to the next hosts when the current host takes too long to respond.

Required methods

The maximum number of speculative executions that will be triggered for a given request (does not include the initial request)

The delay between each speculative execution

Implementors