Class DownloadRetryOptions
- java.lang.Object
-
- com.azure.storage.file.share.models.DownloadRetryOptions
-
public final class DownloadRetryOptions extends Object
This class contains the configuration options used to download from the file share service using smart retries, starting from a checkpoint, rather than starting over from the beginning.
-
-
Constructor Summary
Constructors Constructor Description DownloadRetryOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxRetryRequests()
Specifies the maximum number of additional HTTP Get requests that will be made while reading the data from a response body.DownloadRetryOptions
setMaxRetryRequests(int maxRetryRequests)
Specifies the maximum number of additional HTTP Get requests that will be made while reading the data from a response body.
-
-
-
Method Detail
-
getMaxRetryRequests
public int getMaxRetryRequests()
Specifies the maximum number of additional HTTP Get requests that will be made while reading the data from a response body.- Returns:
- the maximum number of retries to attempt before the request finally fails
-
setMaxRetryRequests
public DownloadRetryOptions setMaxRetryRequests(int maxRetryRequests)
Specifies the maximum number of additional HTTP Get requests that will be made while reading the data from a response body.- Parameters:
maxRetryRequests
- The number of retries to attempt before the request finally fails- Returns:
- the updated DownloadRetryOptions object
- Throws:
IllegalArgumentException
- IfmaxRetryRequests
is less than 0
-
-