RequestRetryFactory Class

Definition

This is a factory which creates policies in an HttpPipeline for retrying a given HTTP request. The request that is retried will be identical each time it is reissued. In most cases, it is sufficient to configure a RequestRetryOptions object and set those as a field on a PipelineOptions object to configure a default pipeline. Retries will try against a secondary if one is specified and the type of operation/error indicates that the secondary can handle the request. Exponential and fixed backoff are supported. The factory and policy must only be used directly when creating a custom pipeline.

public class RequestRetryFactory
Inheritance
java.lang.Object
RequestPolicyFactory
RequestRetryFactory

Constructors

RequestRetryFactory(RequestRetryOptions requestRetryOptions)

Creates a factory capable of generating RequestRetry policies for the HttpPipeline.

Methods

create(RequestPolicy next, RequestPolicyOptions options)

Applies to