pub struct RetryClassifierPriority { /* private fields */ }
Expand description
The priority of a retry classifier. Classifiers with a higher priority will run after classifiers with a lower priority and may override their result. Classifiers with equal priorities make no guarantees about which will run first.
Implementations§
Source§impl RetryClassifierPriority
impl RetryClassifierPriority
Sourcepub fn http_status_code_classifier() -> Self
pub fn http_status_code_classifier() -> Self
Create a new RetryClassifierPriority
with the default priority for the HttpStatusCodeClassifier
.
Sourcepub fn modeled_as_retryable_classifier() -> Self
pub fn modeled_as_retryable_classifier() -> Self
Create a new RetryClassifierPriority
with the default priority for the ModeledAsRetryableClassifier
.
Sourcepub fn transient_error_classifier() -> Self
pub fn transient_error_classifier() -> Self
Create a new RetryClassifierPriority
with the default priority for the TransientErrorClassifier
.
Sourcepub fn with_lower_priority_than(other: Self) -> Self
👎Deprecated: use the less-confusingly-named RetryClassifierPriority::run_before
instead
pub fn with_lower_priority_than(other: Self) -> Self
RetryClassifierPriority::run_before
insteadCreate a new RetryClassifierPriority
with lower priority than the given priority.
Sourcepub fn run_before(other: Self) -> Self
pub fn run_before(other: Self) -> Self
Create a new RetryClassifierPriority
that can be overridden by the given priority.
Retry classifiers are run in order from lowest to highest priority. A classifier that runs later can override a decision from a classifier that runs earlier.
Sourcepub fn with_higher_priority_than(other: Self) -> Self
👎Deprecated: use the less-confusingly-named RetryClassifierPriority::run_after
instead
pub fn with_higher_priority_than(other: Self) -> Self
RetryClassifierPriority::run_after
insteadCreate a new RetryClassifierPriority
with higher priority than the given priority.
Trait Implementations§
Source§impl Clone for RetryClassifierPriority
impl Clone for RetryClassifierPriority
Source§fn clone(&self) -> RetryClassifierPriority
fn clone(&self) -> RetryClassifierPriority
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more