1 | import { FinalizeHandler, FinalizeHandlerArguments, MetadataBearer, Provider } from "@aws-sdk/types";
|
2 | import { StandardRetryStrategy, StandardRetryStrategyOptions } from "./StandardRetryStrategy";
|
3 | import { RateLimiter } from "./types";
|
4 |
|
5 |
|
6 |
|
7 | export interface AdaptiveRetryStrategyOptions extends StandardRetryStrategyOptions {
|
8 | rateLimiter?: RateLimiter;
|
9 | }
|
10 | export declare class AdaptiveRetryStrategy extends StandardRetryStrategy {
|
11 | private rateLimiter;
|
12 | constructor(maxAttemptsProvider: Provider<number>, options?: AdaptiveRetryStrategyOptions);
|
13 | retry<Input extends object, Ouput extends MetadataBearer>(next: FinalizeHandler<Input, Ouput>, args: FinalizeHandlerArguments<Input>): Promise<{
|
14 | response: unknown;
|
15 | output: Ouput;
|
16 | }>;
|
17 | }
|