A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/java/api/com.azure.storage.blob.options.blobparalleluploadoptions below:

BlobParallelUploadOptions Class | Microsoft Learn

BlobParallelUploadOptions Class

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 BlobParallelUploadOptions

public BlobParallelUploadOptions(BinaryData data)

Constructs a new BlobParallelUploadOptions.

Parameters:

data - The data to write to the blob.

BlobParallelUploadOptions

public 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.

BlobParallelUploadOptions

public 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.

Method Details getDataFlux

public Flux<ByteBuffer> getDataFlux()

Gets the data source.

Returns:

The data to write to the blob.

getDataStream

public 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.

getMetadata

public Map<String,String> getMetadata()

Gets the metadata.

Returns:

The metadata to associate with the blob.

getOptionalLength

public 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 getTags

public Map<String,String> getTags()

Get the tags.

Returns:

The tags to associate with the blob.

getTier

public 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.

isComputeMd5

public boolean isComputeMd5()

Gets the computeMd5 property.

Returns:

Whether the library should calculate the md5 and send it for the service to verify.

isLegalHold

public Boolean isLegalHold()

Gets if a legal hold should be placed on the blob.

Returns:

If a legal hold should be placed on the blob.

setComputeMd5

public 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.

setHeaders

public BlobParallelUploadOptions setHeaders(BlobHttpHeaders headers)

Sets the BlobHttpHeaders.

Parameters:

Returns:

The updated options

setImmutabilityPolicy

public 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.

setLegalHold

public 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.

setMetadata

public BlobParallelUploadOptions setMetadata(Map<String,String> metadata)

Sets the metadata.

Parameters:

metadata - The metadata to associate with the blob.

Returns:

The updated options.

setParallelTransferOptions

public BlobParallelUploadOptions setParallelTransferOptions(ParallelTransferOptions parallelTransferOptions)

Sets the ParallelTransferOptions.

Parameters:

Returns:

The updated options.

setRequestConditions

public BlobParallelUploadOptions setRequestConditions(BlobRequestConditions requestConditions)

Sets the BlobRequestConditions.

Parameters:

Returns:

The updated options.

setTags

public BlobParallelUploadOptions setTags(Map<String,String> tags)

Set the tags.

Parameters:

tags - The tags to associate with the blob.

Returns:

The updated options.

setTier

public 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 to

Collaborate 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 article

Was 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