public abstract class RequestOptions extends Object
| Constructor and Description | 
|---|
RequestOptions()
Creates an instance of the  
RequestOptions class. | 
RequestOptions(RequestOptions other)
Creates an instance of the  
RequestOptions class by copying values from another
 RequestOptions instance. | 
| Modifier and Type | Method and Description | 
|---|---|
LocationMode | 
getLocationMode()
Gets the default location mode for this request. 
 | 
Integer | 
getMaximumExecutionTimeInMs()
Gets the maximum execution time for this request. 
 | 
Long | 
getOperationExpiryTimeInMs()
RESERVED FOR INTERNAL USE. 
 | 
RetryPolicyFactory | 
getRetryPolicyFactory()
Gets the retry policy to use for this request. 
 | 
Integer | 
getTimeoutIntervalInMs()
Returns the timeout value for this request. 
 | 
void | 
setLocationMode(LocationMode locationMode)
Sets the  
LocationMode for this request. | 
void | 
setMaximumExecutionTimeInMs(Integer maximumExecutionTimeInMs)
Sets the maximum execution time to use when making this request. 
 | 
void | 
setRetryPolicyFactory(RetryPolicyFactory retryPolicyFactory)
Sets the RetryPolicyFactory object to use for this request. 
 | 
void | 
setTimeoutIntervalInMs(Integer timeoutIntervalInMs)
Sets the timeout to use when making this request. 
 | 
public RequestOptions()
RequestOptions class.public RequestOptions(RequestOptions other)
RequestOptions class by copying values from another
 RequestOptions instance.other - A RequestOptions object that represents the request options to copy.public final RetryPolicyFactory getRetryPolicyFactory()
setRetryPolicyFactory(RetryPolicyFactory).RetryPolicyFactory object that represents the current retry policy.RetryPolicy, 
RetryExponentialRetry, 
RetryLinearRetry, 
RetryNoRetrypublic final Integer getTimeoutIntervalInMs()
setTimeoutIntervalInMs(Integer).public final LocationMode getLocationMode()
setLocationMode(LocationMode).LocationMode object that represents the location mode for this request.public Integer getMaximumExecutionTimeInMs()
setMaximumExecutionTimeInMs(Integer).public Long getOperationExpiryTimeInMs()
setMaximumExecutionTimeInMs(Integer).public final void setRetryPolicyFactory(RetryPolicyFactory retryPolicyFactory)
 The default RetryPolicyFactory is set in the client and is by default RetryExponentialRetry. You can
 change the RetryPolicyFactory on this request by setting this property. You can also change the value on the
 ServiceClient.getDefaultRequestOptions() object so that all subsequent requests made via the service
 client will use that RetryPolicyFactory.
retryPolicyFactory - the RetryPolicyFactory object to use when making service requests.RetryPolicy, 
RetryExponentialRetry, 
RetryLinearRetry, 
RetryNoRetrypublic final void setTimeoutIntervalInMs(Integer timeoutIntervalInMs)
The server timeout interval begins at the time that the complete request has been received by the service, and the server begins processing the response. If the timeout interval elapses before the response is returned to the client, the operation times out. The timeout interval resets with each retry, if the request is retried.
 The default server timeout is set in the client and is by default null, indicating no server timeout. You can
 change the server timeout on this request by setting this property. You can also change the value on the
 ServiceClient.getDefaultRequestOptions() object so that all subsequent requests made via the service
 client will use that server timeout.
timeoutIntervalInMs - The timeout, in milliseconds, to use for this request.public void setLocationMode(LocationMode locationMode)
LocationMode for this request.
 
 The default LocationMode is set in the client and is by default LocationMode.PRIMARY_ONLY. You
 can change the LocationMode on this request by setting this property. You can also change the value on
 the ServiceClient.getDefaultRequestOptions() object so that all subsequent requests made via the service
 client will use that LocationMode.
locationMode - the locationMode to setpublic void setMaximumExecutionTimeInMs(Integer maximumExecutionTimeInMs)
The maximum execution time interval begins at the time that the client begins building the request. The maximum execution time is checked intermittently while uploading data, downloading data, and before executing retries. The service will continue to upload, download, and retry until the maximum execution time is reached. At that time, any partial uploads or downloads will be cancelled and an exception will be thrown.
 The default maximum execution is set in the client and is by default null, indicating no maximum time. You can
 change the maximum execution time on this request by setting this property. You can also change the value on the
 ServiceClient.getDefaultRequestOptions() object so that all subsequent requests made via the service
 client will use the maximum execution time.
maximumExecutionTimeInMs - The maximum execution time, in milliseconds, to use for this request./** 
* Copyright Microsoft Corporation 
* 
* Licensed under the Apache License, Version 2.0 (the "License"); 
* you may not use this file except in compliance with the License. 
* You may obtain a copy of the License at 
* http://www.apache.org/licenses/LICENSE-2.0 
* 
* Unless required by applicable law or agreed to in writing, software 
* distributed under the License is distributed on an "AS IS" BASIS, 
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
* See the License for the specific language governing permissions and 
* limitations under the License. 
*/