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
.ParallelTransferOptions
public BlobParallelUploadOptions setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions)
ParallelTransferOptions
.parallelTransferOptions
- ParallelTransferOptions
public BlobHttpHeaders getHeaders()
BlobHttpHeaders
.BlobHttpHeaders
public BlobParallelUploadOptions setHeaders(BlobHttpHeaders headers)
BlobHttpHeaders
.headers
- BlobHttpHeaders
public 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
.AccessTier
public BlobParallelUploadOptions setTier(AccessTier tier)
AccessTier
.tier
- AccessTier
public BlobRequestConditions getRequestConditions()
BlobRequestConditions
.BlobRequestConditions
public BlobParallelUploadOptions setRequestConditions(BlobRequestConditions requestConditions)
BlobRequestConditions
.requestConditions
- BlobRequestConditions
public 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.