RetryPolicyFactory class

RetryPolicyFactory is a factory class helping generating RetryPolicy objects.

Constructors

RetryPolicyFactory(IRetryOptions)

Creates an instance of RetryPolicyFactory.

Methods

create(RequestPolicy, RequestPolicyOptions)

Constructor Details

RetryPolicyFactory(IRetryOptions)

Creates an instance of RetryPolicyFactory.

new RetryPolicyFactory(retryOptions?: IRetryOptions)

Parameters

retryOptions
IRetryOptions

Method Details

create(RequestPolicy, RequestPolicyOptions)

function create(nextPolicy: RequestPolicy, options: RequestPolicyOptions)

Parameters

nextPolicy
RequestPolicy
options
RequestPolicyOptions

Returns

BaseRequestPolicy