Search
Preparing search index...
The search index is not available
LookoutVision Client - AWS SDK for JavaScript v3
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
AdaptiveRetryStrategy
Class AdaptiveRetryStrategy
deprected
use AdaptiveRetryStrategy from @aws-sdk/util-retry
Hierarchy
StandardRetryStrategy
AdaptiveRetryStrategy
Implements
RetryStrategyV2
RetryStrategy
Index
Constructors
constructor
Properties
mode
Methods
acquire
Initial
Retry
Token
record
Success
refresh
Retry
Token
For
Retry
retry
Constructors
constructor
new
Adaptive
Retry
Strategy
(
maxAttemptsProvider
:
Provider
<
number
>
, options
?:
AdaptiveRetryStrategyOptions
)
:
AdaptiveRetryStrategy
new
Adaptive
Retry
Strategy
(
maxAttemptsProvider
:
Provider
<
number
>
, options
?:
AdaptiveRetryStrategyOptions
)
:
AdaptiveRetryStrategy
Parameters
maxAttemptsProvider:
Provider
<
number
>
Optional
options:
AdaptiveRetryStrategyOptions
Returns
AdaptiveRetryStrategy
Parameters
maxAttemptsProvider:
Provider
<
number
>
Optional
options:
AdaptiveRetryStrategyOptions
Returns
AdaptiveRetryStrategy
Properties
Readonly
mode
mode
:
string
Methods
acquire
Initial
Retry
Token
acquire
Initial
Retry
Token
(
retryTokenScope
:
string
)
:
Promise
<
RetryToken
>
Parameters
retryTokenScope:
string
Returns
Promise
<
RetryToken
>
record
Success
record
Success
(
token
:
StandardRetryToken
)
:
void
Parameters
token:
StandardRetryToken
Returns
void
refresh
Retry
Token
For
Retry
refresh
Retry
Token
For
Retry
(
tokenToRenew
:
StandardRetryToken
, errorInfo
:
RetryErrorInfo
)
:
Promise
<
RetryToken
>
Parameters
tokenToRenew:
StandardRetryToken
errorInfo:
RetryErrorInfo
Returns
Promise
<
RetryToken
>
retry
retry<Input, Ouput>
(
next
:
FinalizeHandler
<
Input
,
Ouput
>
, args
:
FinalizeHandlerArguments
<
Input
>
)
:
Promise
<
{
output
:
Ouput
;
response
:
unknown
}
>
Type parameters
Input
:
object
Ouput
:
MetadataBearer
Parameters
next:
FinalizeHandler
<
Input
,
Ouput
>
args:
FinalizeHandlerArguments
<
Input
>
Returns
Promise
<
{
output
:
Ouput
;
response
:
unknown
}
>
Adaptive
Retry
Strategy
constructor
mode
acquire
Initial
Retry
Token
record
Success
refresh
Retry
Token
For
Retry
retry
use AdaptiveRetryStrategy from @aws-sdk/util-retry