public class FileParallelUploadOptions extends Object
Constructor and Description |
---|
FileParallelUploadOptions(Flux<ByteBuffer> dataFlux)
Constructs a new
FileParallelUploadOptions . |
FileParallelUploadOptions(InputStream dataStream,
long length)
Constructs a new
FileParallelUploadOptions . |
public FileParallelUploadOptions(Flux<ByteBuffer> dataFlux)
FileParallelUploadOptions
.dataFlux
- The data to write to the file. 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 FileParallelUploadOptions(InputStream dataStream, long length)
FileParallelUploadOptions
.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 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 com.azure.storage.common.ParallelTransferOptions getParallelTransferOptions()
ParallelTransferOptions
.ParallelTransferOptions
public FileParallelUploadOptions setParallelTransferOptions(com.azure.storage.common.ParallelTransferOptions parallelTransferOptions)
ParallelTransferOptions
.parallelTransferOptions
- ParallelTransferOptions
public PathHttpHeaders getHeaders()
PathHttpHeaders
.PathHttpHeaders
public FileParallelUploadOptions setHeaders(PathHttpHeaders headers)
PathHttpHeaders
.headers
- PathHttpHeaders
public Map<String,String> getMetadata()
public FileParallelUploadOptions setMetadata(Map<String,String> metadata)
metadata
- The metadata to associate with the blob.public String getPermissions()
public FileParallelUploadOptions setPermissions(String permissions)
permissions
- the POSIX access permissions for the resource owner, the resource owning group, and others.public String getUmask()
public FileParallelUploadOptions setUmask(String umask)
umask
- Restricts permissions of the resource to be created.public DataLakeRequestConditions getRequestConditions()
DataLakeRequestConditions
.DataLakeRequestConditions
public FileParallelUploadOptions setRequestConditions(DataLakeRequestConditions requestConditions)
DataLakeRequestConditions
.requestConditions
- DataLakeRequestConditions
Copyright © 2021 Microsoft Corporation. All rights reserved.