public class BlobParallelUploadOptions extends Object
| Constructor and Description |
|---|
BlobParallelUploadOptions(Flux<ByteBuffer> dataFlux)
Constructs a new
BlobParallelUploadOptions. |
BlobParallelUploadOptions(InputStream dataStream,
long length)
Constructs a new
BlobParalleUploadOptions. |
public BlobParallelUploadOptions(Flux<ByteBuffer> dataFlux)
BlobParallelUploadOptions.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 BlobParallelUploadOptions(InputStream dataStream, long length)
BlobParalleUploadOptions.dataStream - The data to write to the blob. The data must be markable. This is in order to support retries.
If the data is not markable, consider opening a BlobOutputStream and
writing to the returned stream. Alternatively, consider wrapping your data source in a
BufferedInputStream to add mark support.length - The exact length of the data. It is important that this value match precisely the length of the
data provided in the InputStream.public Flux<ByteBuffer> getDataFlux()
public InputStream getDataStream()
public long getLength()
InputStream.public ParallelTransferOptions getParallelTransferOptions()
ParallelTransferOptions.ParallelTransferOptionspublic BlobParallelUploadOptions setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions)
ParallelTransferOptions.parallelTransferOptions - ParallelTransferOptionspublic BlobHttpHeaders getHeaders()
BlobHttpHeaders.BlobHttpHeaderspublic BlobParallelUploadOptions setHeaders(BlobHttpHeaders headers)
BlobHttpHeaders.headers - BlobHttpHeaderspublic Map<String,String> getMetadata()
public BlobParallelUploadOptions setMetadata(Map<String,String> metadata)
metadata - The metadata to associate with the blob.public Map<String,String> getTags()
public BlobParallelUploadOptions setTags(Map<String,String> tags)
tags - The tags to associate with the blob.public AccessTier getTier()
AccessTier.AccessTierpublic BlobParallelUploadOptions setTier(AccessTier tier)
AccessTier.tier - AccessTierpublic BlobRequestConditions getRequestConditions()
BlobRequestConditions.BlobRequestConditionspublic BlobParallelUploadOptions setRequestConditions(BlobRequestConditions requestConditions)
BlobRequestConditions.requestConditions - BlobRequestConditionspublic boolean isComputeMd5()
public BlobParallelUploadOptions setComputeMd5(boolean computeMd5)
computeMd5 - Whether or not the library should calculate the md5 and send it for the service to
verify.@Deprecated public Duration getTimeout()
BlobClient.uploadWithResponse(BlobParallelUploadOptions, Duration, Context) to
specify timeout.RuntimeException will be raised.@Deprecated public BlobParallelUploadOptions setTimeout(Duration timeout)
BlobClient.uploadWithResponse(BlobParallelUploadOptions, Duration, Context) to
specify timeout.timeout - An optional timeout value beyond which a RuntimeException will be raised.Copyright © 2020 Microsoft Corporation. All rights reserved.