annotations-design-patterns
Guías (ES)
Guides (EN)
Preparing search index...
policy
RetryPolicyOptions
Interface RetryPolicyOptions<This, Args>
interface
RetryPolicyOptions
<
This
,
Args
extends
readonly
unknown
[]
>
{
attempts
:
number
;
delayMs
?:
number
;
backoffFactor
?:
number
;
maxDelayMs
?:
number
;
jitter
?:
"none"
|
"full"
|
"equal"
;
idempotent
:
true
;
shouldRetry
?:
(
error
:
unknown
,
attempt
:
number
,
context
:
PolicyRetryContext
<
This
,
Args
>
,
)
=>
boolean
;
}
Type Parameters
This
Args
extends
readonly
unknown
[]
Index
Properties
attempts
delay
Ms?
backoff
Factor?
max
Delay
Ms?
jitter?
idempotent
should
Retry?
Properties
Readonly
attempts
attempts
:
number
Optional
Readonly
delay
Ms
delayMs
?:
number
Optional
Readonly
backoff
Factor
backoffFactor
?:
number
Optional
Readonly
max
Delay
Ms
maxDelayMs
?:
number
Optional
Readonly
jitter
jitter
?:
"none"
|
"full"
|
"equal"
Readonly
idempotent
idempotent
:
true
Retry is opt-in only for operations explicitly declared idempotent.
Optional
Readonly
should
Retry
shouldRetry
?:
(
error
:
unknown
,
attempt
:
number
,
context
:
PolicyRetryContext
<
This
,
Args
>
,
)
=>
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
attempts
delay
Ms
backoff
Factor
max
Delay
Ms
jitter
idempotent
should
Retry
Guías (ES)
Guides (EN)
annotations-design-patterns
Loading...
Retry is opt-in only for operations explicitly declared idempotent.