public class BlobParallelUploadOptions
Extended options that may be passed when uploading a Block Blob in parallel.
Constructor Summary Method Summary Methods inherited from java.lang.Object Constructor Details BlobParallelUploadOptionspublic BlobParallelUploadOptions(BinaryData data)
Constructs a new BlobParallelUploadOptions
.
Parameters:
data - The data to write to the blob.
BlobParallelUploadOptionspublic BlobParallelUploadOptions(InputStream dataStream)
Constructs a new BlobParallelUploadOptions. Note: the InputStream must be closed by the caller.
Parameters:
dataStream - The data to write to the blob.
BlobParallelUploadOptions@Deprecated
public BlobParallelUploadOptions(InputStream dataStream, long length)
Deprecated
Constructs a new BlobParallelUploadOptions.
Use BlobParallelUploadOptions(InputStream dataStream) instead to supply an InputStream without knowing the exact length beforehand.
Parameters:
dataStream - The data to write to the blob.
length - The exact length of the data. It is important that this value match precisely the length of the data provided in the InputStream.
BlobParallelUploadOptionspublic BlobParallelUploadOptions(Flux<ByteBuffer> dataFlux)
Constructs a new BlobParallelUploadOptions.
Parameters:
dataFlux - The data to write to the blob. Unlike other upload methods, this method does not require that the Flux
be replayable. In other words, it does not have to support multiple subscribers and is not expected to produce the same values across subscriptions.
public Flux<ByteBuffer> getDataFlux()
Gets the data source.
Returns:
The data to write to the blob.
getDataStreampublic InputStream getDataStream()
Gets the data source.
Returns:
The data to write to the blob.
getLength@Deprecated
public long getLength()
Deprecated
Gets the length of the data.
Returns:
The exact length of the data. It is important that this value match precisely the length of the data provided in the InputStream.
getMetadatapublic Map<String,String> getMetadata()
Gets the metadata.
Returns:
The metadata to associate with the blob.
getOptionalLengthpublic Long getOptionalLength()
Gets the length of the data.
Returns:
The exact length of the data. It is important that this value match precisely the length of the data provided in the InputStream.
getParallelTransferOptions getTagspublic Map<String,String> getTags()
Get the tags.
Returns:
The tags to associate with the blob.
getTierpublic AccessTier getTier()
Gets the AccessTier.
Returns:
getTimeout@Deprecated
public Duration getTimeout()
Deprecated
Gets the timeout.
Returns:
An optional timeout value beyond which a RuntimeException will be raised.
isComputeMd5public boolean isComputeMd5()
Gets the computeMd5 property.
Returns:
Whether the library should calculate the md5 and send it for the service to verify.
isLegalHoldpublic Boolean isLegalHold()
Gets if a legal hold should be placed on the blob.
Returns:
If a legal hold should be placed on the blob.
setComputeMd5public BlobParallelUploadOptions setComputeMd5(boolean computeMd5)
Sets the computeMd5 property.
Parameters:
computeMd5 - Whether the library should calculate the md5 and send it for the service to verify.
Returns:
The updated options.
setHeaderspublic BlobParallelUploadOptions setHeaders(BlobHttpHeaders headers)
Sets the BlobHttpHeaders.
Parameters:
Returns:
The updated options
setImmutabilityPolicypublic BlobParallelUploadOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)
Sets the BlobImmutabilityPolicy.
Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.
Parameters:
Returns:
The updated options.
setLegalHoldpublic BlobParallelUploadOptions setLegalHold(Boolean legalHold)
Sets if a legal hold should be placed on the blob.
Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.
Parameters:
legalHold - Indicates if a legal hold should be placed on the blob.
Returns:
The updated options.
setMetadatapublic BlobParallelUploadOptions setMetadata(Map<String,String> metadata)
Sets the metadata.
Parameters:
metadata - The metadata to associate with the blob.
Returns:
The updated options.
setParallelTransferOptionspublic BlobParallelUploadOptions setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions)
Sets the ParallelTransferOptions.
Parameters:
Returns:
The updated options.
setRequestConditionspublic BlobParallelUploadOptions setRequestConditions(BlobRequestConditions requestConditions)
Sets the BlobRequestConditions.
Parameters:
Returns:
The updated options.
setTagspublic BlobParallelUploadOptions setTags(Map<String,String> tags)
Set the tags.
Parameters:
tags - The tags to associate with the blob.
Returns:
The updated options.
setTierpublic BlobParallelUploadOptions setTier(AccessTier tier)
Sets the AccessTier.
Parameters:
Returns:
The updated options.
setTimeout@Deprecated
public BlobParallelUploadOptions setTimeout(Duration timeout)
Deprecated
Sets the timeout.
Parameters:
timeout - An optional timeout value beyond which a RuntimeException will be raised.
Returns:
The updated options
Applies toCollaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4