public class RetryPolicy extends Object implements HttpPipelinePolicy
| Constructor and Description |
|---|
RetryPolicy()
Creates a RetryPolicy with the default number of retry attempts and delay between retries.
|
RetryPolicy(int maxRetries,
Duration delayDuration)
Creates a RetryPolicy.
|
| Modifier and Type | Method and Description |
|---|---|
Mono<HttpResponse> |
process(HttpPipelineCallContext context,
HttpPipelineNextPolicy next)
Process provided request context and invokes the next policy.
|
public RetryPolicy()
public RetryPolicy(int maxRetries,
Duration delayDuration)
maxRetries - the maximum number of retries to attempt.delayDuration - the delay between retriespublic Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)
HttpPipelinePolicyprocess in interface HttpPipelinePolicycontext - request contextnext - the next policy to invokeCopyright © 2019 Microsoft Corporation. All rights reserved.