ParallelDownloadOptions Class
- java.
lang. Object - com.
azure. communication. callautomation. models. ParallelDownloadOptions
- com.
public final class ParallelDownloadOptions
This class contains configuration used to parallelize data transfer operations. Note that not all values are used by every method which accepts this type. Please refer to the javadoc on specific methods for these cases.
Constructor Summary
| Constructor | Description |
|---|---|
| ParallelDownloadOptions() |
Creates a new ParallelDownloadOptions with default parameters applied. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Long |
getBlockSize()
Gets the block size (chunk size) to transfer at a time. |
| int |
getMaxConcurrency()
Gets the maximum number of parallel requests that will be issued at any given time. |
|
Progress |
getProgressListener()
Gets the Progress listener for parallel reporting |
|
Parallel |
setBlockSize(long blockSize)
Sets the block size. |
|
Parallel |
setMaxConcurrency(int maxConcurrency)
Sets the maximum number of parallel requests that will be issued at any given time. |
|
Parallel |
setProgressReceiver(ProgressListener progressListener)
Sets the ProgressListener. |
Methods inherited from java.lang.Object
Constructor Details
ParallelDownloadOptions
public ParallelDownloadOptions()
Creates a new ParallelDownloadOptions with default parameters applied.
Method Details
getBlockSize
public Long getBlockSize()
Gets the block size (chunk size) to transfer at a time.
Returns:
getMaxConcurrency
public int getMaxConcurrency()
Gets the maximum number of parallel requests that will be issued at any given time.
Returns:
getProgressListener
public ProgressListener getProgressListener()
Gets the Progress listener for parallel reporting
Returns:
setBlockSize
public ParallelDownloadOptions setBlockSize(long blockSize)
Sets the block size. The block size is the size of each data chunk returned from the service. For both applications, If block size is large, download will make fewer network calls, but each individual call will receive more data and will therefore take longer.
Parameters:
Returns:
setMaxConcurrency
public ParallelDownloadOptions setMaxConcurrency(int maxConcurrency)
Sets the maximum number of parallel requests that will be issued at any given time.
Parameters:
Returns:
setProgressReceiver
public ParallelDownloadOptions setProgressReceiver(ProgressListener progressListener)
Sets the ProgressListener.
Parameters:
Returns: