### YamlMime:JavaType uid: "com.azure.storage.common.ParallelTransferOptions" fullName: "com.azure.storage.common.ParallelTransferOptions" name: "ParallelTransferOptions" nameWithType: "ParallelTransferOptions" summary: "This class contains configuration used to parallelize data transfer operations." inheritances: - "" inheritedClassMethods: - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public final class **ParallelTransferOptions**" constructors: - uid: "com.azure.storage.common.ParallelTransferOptions.ParallelTransferOptions()" fullName: "com.azure.storage.common.ParallelTransferOptions.ParallelTransferOptions()" name: "ParallelTransferOptions()" nameWithType: "ParallelTransferOptions.ParallelTransferOptions()" summary: "Creates a new with default parameters applied." syntax: "public ParallelTransferOptions()" desc: "Creates a new with default parameters applied." - uid: "com.azure.storage.common.ParallelTransferOptions.ParallelTransferOptions(java.lang.Integer,java.lang.Integer,com.azure.storage.common.ProgressReceiver,java.lang.Integer)" fullName: "com.azure.storage.common.ParallelTransferOptions.ParallelTransferOptions(Integer blockSize, Integer maxConcurrency, ProgressReceiver progressReceiver, Integer maxSingleUploadSize)" name: "ParallelTransferOptions(Integer blockSize, Integer maxConcurrency, ProgressReceiver progressReceiver, Integer maxSingleUploadSize)" nameWithType: "ParallelTransferOptions.ParallelTransferOptions(Integer blockSize, Integer maxConcurrency, ProgressReceiver progressReceiver, Integer maxSingleUploadSize)" summary: "Creates a new with default parameters applied." deprecatedTag: "Use fluent interface to set properties instead." parameters: - description: "The block size.\n For upload, The block size is the size of each block that will be staged. This value also determines the number\n of requests that need to be made. This parameter also determines the size that each buffer uses when buffering\n is required and consequently amount of memory consumed by such methods may be up to blockSize * numBuffers.\n For download to file, the block size is the size of each data chunk returned from the service.\n For both applications, If block size is large, upload will make fewer network calls, but each\n individual call will send more data and will therefore take longer." name: "blockSize" type: "Integer" - description: "The maximum number of parallel requests that will be issued at any given time as a part of\n a single parallel transfer. This value applies per api. For example, if two calls to uploadFromFile are made at\n the same time, and each specifies a maxConcurrency of 5, there may be up to 10 outstanding, concurrent requests,\n up to 5 for each of the upload operations. For buffered uploads only, the maximum number of buffers to be\n allocated as part of the transfer will be maxConcurrency + 1. In those cases, memory will be allocated\n lazily as needed. The amount of memory consumed by methods which buffer may be up to blockSize * maxConcurrency.\n In general, upload methods which do not accept a length parameter must perform some buffering." name: "maxConcurrency" type: "Integer" - description: "" name: "progressReceiver" type: "" - description: "If the size of the data is less than or equal to this value, it will be uploaded in a\n single put rather than broken up into chunks. If the data is uploaded in a single shot, the block size will be\n ignored. Some constraints to consider are that more requests cost more, but several small or mid-sized requests\n may sometimes perform better. In the case of buffered upload, up to this amount of data may be buffered before\n any data is sent. Must be greater than 0. May be null to accept default behavior, which is the maximum value the\n service accepts for uploading in a single requests, which varies depending on the service." name: "maxSingleUploadSize" type: "Integer" syntax: "@Deprecated
public ParallelTransferOptions(Integer blockSize, Integer maxConcurrency, ProgressReceiver progressReceiver, Integer maxSingleUploadSize)" desc: "Creates a new with default parameters applied." hasDeprecatedTag: true methods: - uid: "com.azure.storage.common.ParallelTransferOptions.getBlockSize()" fullName: "com.azure.storage.common.ParallelTransferOptions.getBlockSize()" name: "getBlockSize()" nameWithType: "ParallelTransferOptions.getBlockSize()" summary: "Gets the block size (chunk size) to transfer at a time." deprecatedTag: "Use ." syntax: "@Deprecated
public Integer getBlockSize()" desc: "Gets the block size (chunk size) to transfer at a time." hasDeprecatedTag: true returns: description: "The block size." type: "Integer" - uid: "com.azure.storage.common.ParallelTransferOptions.getBlockSizeLong()" fullName: "com.azure.storage.common.ParallelTransferOptions.getBlockSizeLong()" name: "getBlockSizeLong()" nameWithType: "ParallelTransferOptions.getBlockSizeLong()" summary: "Gets the block size (chunk size) to transfer at a time." syntax: "public Long getBlockSizeLong()" desc: "Gets the block size (chunk size) to transfer at a time." returns: description: "The block size." type: "Long" - uid: "com.azure.storage.common.ParallelTransferOptions.getMaxConcurrency()" fullName: "com.azure.storage.common.ParallelTransferOptions.getMaxConcurrency()" name: "getMaxConcurrency()" nameWithType: "ParallelTransferOptions.getMaxConcurrency()" summary: "Gets the maximum number of parallel requests that will be issued at any given time." syntax: "public Integer getMaxConcurrency()" desc: "Gets the maximum number of parallel requests that will be issued at any given time." returns: description: "The max concurrency value." type: "Integer" - uid: "com.azure.storage.common.ParallelTransferOptions.getMaxSingleUploadSize()" fullName: "com.azure.storage.common.ParallelTransferOptions.getMaxSingleUploadSize()" name: "getMaxSingleUploadSize()" nameWithType: "ParallelTransferOptions.getMaxSingleUploadSize()" summary: "Gets the value above which the upload will be broken into blocks and parallelized." deprecatedTag: "Use ." syntax: "@Deprecated
public Integer getMaxSingleUploadSize()" desc: "Gets the value above which the upload will be broken into blocks and parallelized." hasDeprecatedTag: true returns: description: "The threshold value." type: "Integer" - uid: "com.azure.storage.common.ParallelTransferOptions.getMaxSingleUploadSizeLong()" fullName: "com.azure.storage.common.ParallelTransferOptions.getMaxSingleUploadSizeLong()" name: "getMaxSingleUploadSizeLong()" nameWithType: "ParallelTransferOptions.getMaxSingleUploadSizeLong()" summary: "Gets the value above which the upload will be broken into blocks and parallelized." syntax: "public Long getMaxSingleUploadSizeLong()" desc: "Gets the value above which the upload will be broken into blocks and parallelized." returns: description: "The threshold value." type: "Long" - uid: "com.azure.storage.common.ParallelTransferOptions.getNumBuffers()" fullName: "com.azure.storage.common.ParallelTransferOptions.getNumBuffers()" name: "getNumBuffers()" nameWithType: "ParallelTransferOptions.getNumBuffers()" summary: "Gets the number of buffers being used for a transfer operation." deprecatedTag: "Use " syntax: "@Deprecated
public Integer getNumBuffers()" desc: "Gets the number of buffers being used for a transfer operation." hasDeprecatedTag: true returns: description: "The number of buffers." type: "Integer" - uid: "com.azure.storage.common.ParallelTransferOptions.getProgressListener()" fullName: "com.azure.storage.common.ParallelTransferOptions.getProgressListener()" name: "getProgressListener()" nameWithType: "ParallelTransferOptions.getProgressListener()" summary: "Gets the Progress listener for parallel reporting" syntax: "public ProgressListener getProgressListener()" desc: "Gets the Progress listener for parallel reporting" returns: description: "The progress listener" type: "" - uid: "com.azure.storage.common.ParallelTransferOptions.getProgressReceiver()" fullName: "com.azure.storage.common.ParallelTransferOptions.getProgressReceiver()" name: "getProgressReceiver()" nameWithType: "ParallelTransferOptions.getProgressReceiver()" summary: "Gets the Progress receiver for parallel reporting" deprecatedTag: "Use " syntax: "@Deprecated
public ProgressReceiver getProgressReceiver()" desc: "Gets the Progress receiver for parallel reporting" hasDeprecatedTag: true returns: description: "The progress reporter" type: "" - uid: "com.azure.storage.common.ParallelTransferOptions.setBlockSizeLong(java.lang.Long)" fullName: "com.azure.storage.common.ParallelTransferOptions.setBlockSizeLong(Long blockSize)" name: "setBlockSizeLong(Long blockSize)" nameWithType: "ParallelTransferOptions.setBlockSizeLong(Long blockSize)" summary: "Sets the block size." parameters: - description: "The block size." name: "blockSize" type: "Long" syntax: "public ParallelTransferOptions setBlockSizeLong(Long blockSize)" desc: "Sets the block size. For upload, The block size is the size of each block that will be staged. This value also determines the number of requests that need to be made. This parameter also determines the size that each buffer uses when buffering is required and consequently amount of memory consumed by such methods may be up to blockSize \\* numBuffers. For download to file, the block size is the size of each data chunk returned from the service. For both applications, If block size is large, upload will make fewer network calls, but each individual call will send more data and will therefore take longer." returns: description: "The ParallelTransferOptions object itself." type: "" - uid: "com.azure.storage.common.ParallelTransferOptions.setMaxConcurrency(java.lang.Integer)" fullName: "com.azure.storage.common.ParallelTransferOptions.setMaxConcurrency(Integer maxConcurrency)" name: "setMaxConcurrency(Integer maxConcurrency)" nameWithType: "ParallelTransferOptions.setMaxConcurrency(Integer maxConcurrency)" summary: "Sets the maximum number of parallel requests that will be issued at any given time." parameters: - description: "The maximum number of parallel requests that will be issued at any given time as a part of\n a single parallel transfer. This value applies per api. For example, if two calls to uploadFromFile are made at\n the same time, and each specifies a maxConcurrency of 5, there may be up to 10 outstanding, concurrent requests,\n up to 5 for each of the upload operations. For buffered uploads only, the maximum number of buffers to be\n allocated as part of the transfer will be maxConcurrency + 1. In those cases, memory will be allocated\n lazily as needed. The amount of memory consumed by methods which buffer may be up to blockSize * maxConcurrency.\n In general, upload methods which do not accept a length parameter must perform some buffering." name: "maxConcurrency" type: "Integer" syntax: "public ParallelTransferOptions setMaxConcurrency(Integer maxConcurrency)" desc: "Sets the maximum number of parallel requests that will be issued at any given time." returns: description: "The ParallelTransferOptions object itself." type: "" - uid: "com.azure.storage.common.ParallelTransferOptions.setMaxSingleUploadSizeLong(java.lang.Long)" fullName: "com.azure.storage.common.ParallelTransferOptions.setMaxSingleUploadSizeLong(Long maxSingleUploadSize)" name: "setMaxSingleUploadSizeLong(Long maxSingleUploadSize)" nameWithType: "ParallelTransferOptions.setMaxSingleUploadSizeLong(Long maxSingleUploadSize)" summary: "If the size of the data is less than or equal to this value, it will be uploaded in a single put rather than broken up into chunks." parameters: - description: "The threshold value." name: "maxSingleUploadSize" type: "Long" syntax: "public ParallelTransferOptions setMaxSingleUploadSizeLong(Long maxSingleUploadSize)" desc: "If the size of the data is less than or equal to this value, it will be uploaded in a single put rather than broken up into chunks. If the data is uploaded in a single shot, the block size will be ignored. Some constraints to consider are that more requests cost more, but several small or mid-sized requests may sometimes perform better. In the case of buffered upload, up to this amount of data may be buffered before any data is sent. Must be greater than 0. May be null to accept default behavior, which is the maximum value the service accepts for uploading in a single requests, which varies depending on the service." returns: description: "The ParallelTransferOptions object itself." type: "" - uid: "com.azure.storage.common.ParallelTransferOptions.setProgressListener(com.azure.core.util.ProgressListener)" fullName: "com.azure.storage.common.ParallelTransferOptions.setProgressListener(ProgressListener progressListener)" name: "setProgressListener(ProgressListener progressListener)" nameWithType: "ParallelTransferOptions.setProgressListener(ProgressListener progressListener)" summary: "Sets the ." parameters: - description: "The ." name: "progressListener" type: "" syntax: "public ParallelTransferOptions setProgressListener(ProgressListener progressListener)" desc: "Sets the ." returns: description: "The ParallelTransferOptions object itself." type: "" - uid: "com.azure.storage.common.ParallelTransferOptions.setProgressReceiver(com.azure.storage.common.ProgressReceiver)" fullName: "com.azure.storage.common.ParallelTransferOptions.setProgressReceiver(ProgressReceiver progressReceiver)" name: "setProgressReceiver(ProgressReceiver progressReceiver)" nameWithType: "ParallelTransferOptions.setProgressReceiver(ProgressReceiver progressReceiver)" summary: "Sets the ." deprecatedTag: "Use " parameters: - description: "The ." name: "progressReceiver" type: "" syntax: "@Deprecated
public ParallelTransferOptions setProgressReceiver(ProgressReceiver progressReceiver)" desc: "Sets the ." hasDeprecatedTag: true returns: description: "The ParallelTransferOptions object itself." type: "" type: "class" desc: "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." metadata: {} package: "com.azure.storage.common" artifact: com.azure:azure-storage-common:12.26.1