Skip to content

Commit a52112a

Browse files
Add info on import directive
1 parent 1b633f3 commit a52112a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

articles/storage/blobs/storage-blob-download-java.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ You can configure values in [ParallelTransferOptions](/java/api/com.azure.storag
6666
- `blockSize`: The maximum block size to transfer for each request. You can set this value by using the [setBlockSizeLong](/java/api/com.azure.storage.common.paralleltransferoptions#com-azure-storage-common-paralleltransferoptions-setblocksizelong(java-lang-long)) method.
6767
- `maxConcurrency`: The maximum number of parallel requests issued at any given time as a part of a single parallel transfer. You can set this value by using the [setMaxConcurrency](/java/api/com.azure.storage.common.paralleltransferoptions#com-azure-storage-common-paralleltransferoptions-setmaxconcurrency(java-lang-integer)) method.
6868

69+
Add the following `import` directive to your file to use `ParallelTransferOptions`:
70+
71+
```java
72+
import com.azure.storage.common.*;
73+
```
74+
6975
The following code example shows how to set values for `ParallelTransferOptions` and include the options as part of a `BlobDownloadToFileOptions` instance. The values provided in this sample aren't intended to be a recommendation. To properly tune these values, you need to consider the specific needs of your app.
7076

7177
:::code language="java" source="~/azure-storage-snippets/blobs/howto/Java/blob-devguide/blob-devguide-blobs/src/main/java/com/blobs/devguide/blobs/BlobDownload.java" id="Snippet_DownloadBlobWithTransferOptions":::

0 commit comments

Comments
 (0)