#[repr(i32)]pub enum RetryStrategy {
Unspecified = 0,
Ignore = 1,
None = 2,
Fatal = 3,
FixedInterval = 4,
LinearBackoff = 5,
ExponentialBackoff = 6,
RestartIntegrationWithBackoff = 7,
}
Expand description
The behavior when the taks failed.
Variants§
Unspecified = 0
UNSPECIFIED.
Ignore = 1
Ignores the failure of this task. The rest of the integration will be executed Assuming this task succeeded.
None = 2
Causes a permanent failure of the task. However, if the last task(s) of event was successfully completed despite the failure of this task, it has no impact on the integration.
Fatal = 3
Causes a permanent failure of the event. It is different from NONE because this will mark the event as FAILED by shutting down the event execution.
FixedInterval = 4
The task will be retried from the failed task onwards after a fixed delay. A max-retry count is required to be specified with this strategy. A jitter is added to each exponential interval so that concurrently failing tasks of the same type do not end up retrying after the exact same exponential interval. max_retries and interval_in_seconds must be specified.
LinearBackoff = 5
The task will be retried from the failed task onwards after a fixed delay that linearly increases with each retry attempt. A jitter is added to each exponential interval so that concurrently failing tasks of the same type do not end up retrying after the exact same exponential interval. A max-retry count is required to be specified with this strategy. max_retries and interval_in_seconds must be specified.
ExponentialBackoff = 6
The task will be retried after an exponentially increasing period of
time with each failure. A jitter is added to each exponential interval
so that concurrently failing tasks of the same type do not end up
retrying after the exact same exponential interval. A max-retry count
is required to be specified with this strategy. max_retries
and
interval_in_seconds
must be specified.
RestartIntegrationWithBackoff = 7
The entire integration will be restarted with the initial parameters that
were set when the event was fired. A max-retry count is required to be
specified with this strategy. max_retries
and interval_in_seconds
must be specified.
Implementations§
source§impl RetryStrategy
impl RetryStrategy
source§impl RetryStrategy
impl RetryStrategy
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for RetryStrategy
impl Clone for RetryStrategy
source§fn clone(&self) -> RetryStrategy
fn clone(&self) -> RetryStrategy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RetryStrategy
impl Debug for RetryStrategy
source§impl Default for RetryStrategy
impl Default for RetryStrategy
source§fn default() -> RetryStrategy
fn default() -> RetryStrategy
source§impl From<RetryStrategy> for i32
impl From<RetryStrategy> for i32
source§fn from(value: RetryStrategy) -> i32
fn from(value: RetryStrategy) -> i32
source§impl Hash for RetryStrategy
impl Hash for RetryStrategy
source§impl Ord for RetryStrategy
impl Ord for RetryStrategy
source§fn cmp(&self, other: &RetryStrategy) -> Ordering
fn cmp(&self, other: &RetryStrategy) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for RetryStrategy
impl PartialEq for RetryStrategy
source§fn eq(&self, other: &RetryStrategy) -> bool
fn eq(&self, other: &RetryStrategy) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RetryStrategy
impl PartialOrd for RetryStrategy
source§fn partial_cmp(&self, other: &RetryStrategy) -> Option<Ordering>
fn partial_cmp(&self, other: &RetryStrategy) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for RetryStrategy
impl TryFrom<i32> for RetryStrategy
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<RetryStrategy, UnknownEnumValue>
fn try_from(value: i32) -> Result<RetryStrategy, UnknownEnumValue>
impl Copy for RetryStrategy
impl Eq for RetryStrategy
impl StructuralPartialEq for RetryStrategy
Auto Trait Implementations§
impl Freeze for RetryStrategy
impl RefUnwindSafe for RetryStrategy
impl Send for RetryStrategy
impl Sync for RetryStrategy
impl Unpin for RetryStrategy
impl UnwindSafe for RetryStrategy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request