1 | import { HttpOperationResponse } from "../httpOperationResponse";
|
2 | import { WebResourceLike } from "../webResource";
|
3 | import { BaseRequestPolicy, RequestPolicy, RequestPolicyFactory, RequestPolicyOptionsLike } from "./requestPolicy";
|
4 | export interface RetryData {
|
5 | retryCount: number;
|
6 | retryInterval: number;
|
7 | error?: RetryError;
|
8 | }
|
9 | export interface RetryError extends Error {
|
10 | message: string;
|
11 | code?: string;
|
12 | innerError?: RetryError;
|
13 | }
|
14 | export declare function exponentialRetryPolicy(retryCount?: number, retryInterval?: number, minRetryInterval?: number, maxRetryInterval?: number): RequestPolicyFactory;
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export declare class ExponentialRetryPolicy extends BaseRequestPolicy {
|
20 | |
21 |
|
22 |
|
23 | retryCount: number;
|
24 | |
25 |
|
26 |
|
27 | retryInterval: number;
|
28 | |
29 |
|
30 |
|
31 | minRetryInterval: number;
|
32 | |
33 |
|
34 |
|
35 | maxRetryInterval: number;
|
36 | |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike, retryCount?: number, retryInterval?: number, minRetryInterval?: number, maxRetryInterval?: number);
|
46 | sendRequest(request: WebResourceLike): Promise<HttpOperationResponse>;
|
47 | }
|
48 | //# sourceMappingURL=exponentialRetryPolicy.d.ts.map |
\ | No newline at end of file |