public class RetryPolicyFactory extends Object implements RequestPolicyFactory
| Constructor and Description |
|---|
RetryPolicyFactory()
Creates a RetryPolicyFactory with the default number of retry attempts and delay between retries.
|
RetryPolicyFactory(int maxRetries,
long delayTime,
TimeUnit timeUnit)
Creates a RetryPolicyFactory.
|
| Modifier and Type | Method and Description |
|---|---|
RequestPolicy |
create(RequestPolicy next,
RequestPolicyOptions options)
Creates RequestPolicy.
|
public RetryPolicyFactory()
public RetryPolicyFactory(int maxRetries,
long delayTime,
TimeUnit timeUnit)
maxRetries - The maximum number of retries to attempt.delayTime - the delay between retriestimeUnit - the time unit of the delaypublic RequestPolicy create(RequestPolicy next, RequestPolicyOptions options)
RequestPolicyFactorycreate in interface RequestPolicyFactorynext - the next RequestPolicy in the request-response pipeline.options - The optional arguments that can be passed to a RequestPolicy./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/