public final class TimeoutPolicyFactory extends Object implements RequestPolicyFactory
| Constructor and Description |
|---|
TimeoutPolicyFactory(long timeout,
TimeUnit unit)
Creates a TimeoutPolicyFactory.
|
| Modifier and Type | Method and Description |
|---|---|
RequestPolicy |
create(RequestPolicy next,
RequestPolicyOptions options)
Creates RequestPolicy.
|
public TimeoutPolicyFactory(long timeout,
TimeUnit unit)
timeout - the length of the timeoutunit - the unit of the timeoutpublic 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.
*/