Search
Preparing search index...
The search index is not available
@stinoz/retry-policy
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@stinoz/retry-policy
RetryPolicy/RetryPolicy
RetryPolicy
Class RetryPolicy
Hierarchy
RetryPolicy
Index
Constructors
constructor
Properties
error
Detection
Strategies
stop
Strategy
wait
Strategy
Methods
execute
handle
Error
handle
Fatal
handle
Retryable
Constructors
constructor
new
Retry
Policy
(
options
?:
RetryPolicyOptions
)
:
RetryPolicy
Parameters
options:
RetryPolicyOptions
= ...
Returns
RetryPolicy
Properties
error
Detection
Strategies
error
Detection
Strategies
:
ErrorDetectionStrategy
[]
stop
Strategy
stop
Strategy
:
StopStrategy
wait
Strategy
wait
Strategy
:
WaitStrategy
Methods
execute
execute<T>
(
action
:
(
)
=>
Promise
<
T
>
, retryState
?:
RetryState
)
:
Promise
<
T
>
Type parameters
T
Parameters
action:
(
)
=>
Promise
<
T
>
(
)
:
Promise
<
T
>
Returns
Promise
<
T
>
retryState:
RetryState
= ...
Returns
Promise
<
T
>
Private
handle
Error
handle
Error
(
error
:
Error
, retryState
:
RetryState
)
:
Promise
<
RetryState
>
Parameters
error:
Error
retryState:
RetryState
Returns
Promise
<
RetryState
>
Private
handle
Fatal
handle
Fatal
(
error
:
Error
)
:
Promise
<
never
>
Parameters
error:
Error
Returns
Promise
<
never
>
Private
handle
Retryable
handle
Retryable
(
error
:
Error
, retryState
:
RetryState
)
:
Promise
<
RetryState
>
Parameters
error:
Error
retryState:
RetryState
Returns
Promise
<
RetryState
>
Exports
Error
Detection
Strategy
Error
Detection
Strategy/
All
Error
Detection
Strategy
Error
Detection
Strategy/
Error
Detection
Strategy
Builder
Error
Detection
Strategy/
Generic
Error
Detection
Strategy
Error
Detection
Strategy/
NoError
Detection
Strategy
Retry
Policy/
Retry
Policy
Retry
State/
Retry
State
Stop
Strategy
Stop
Strategy/
After
Attempt
Stop
Strategy
Stop
Strategy/
Never
Stop
Strategy
Stop
Strategy/
Stop
Strategy
Builder
Wait
Strategy
Wait
Strategy/
Exponential
Wait
Strategy
Wait
Strategy/
Fixed
Wait
Strategy
Wait
Strategy/
Linear
Wait
Strategy
Wait
Strategy/
Series
Wait
Strategy
Wait
Strategy/
Wait
Strategy
Builder
helpers/helpers
index
Retry
Policy
constructor
error
Detection
Strategies
stop
Strategy
wait
Strategy
execute
handle
Error
handle
Fatal
handle
Retryable
Retry
Policy
Options
Generated using
TypeDoc