BlockBlobSeekableByteChannelWriteOptions Class

  • java.lang.Object
    • com.azure.storage.blob.options.BlockBlobSeekableByteChannelWriteOptions

public final class BlockBlobSeekableByteChannelWriteOptions

Options for obtaining a SeekableByteChannel backed by an Azure Storage Share File.

Constructor Summary

Constructor Description
BlockBlobSeekableByteChannelWriteOptions(BlockBlobSeekableByteChannelWriteOptions.WriteMode mode)

Options constructor.

Method Summary

Modifier and Type Method and Description
Long getBlockSizeInBytes()

Gets the size of individual writes to the service.

BlobHttpHeaders getHeaders()

Gets the HTTP headers to write.

Map<String,String> getMetadata()

Gets the metadata to write.

BlobRequestConditions getRequestConditions()

Gets the request conditions for writing to the blob.

Map<String,String> getTags()

Gets the tags to write.

AccessTier getTier()

Gets the access tier for the target blob.

WriteMode getWriteMode()

Gets the usage mode to be used by the resulting channel.

BlockBlobSeekableByteChannelWriteOptions setBlockSizeInBytes(Long blockSizeInBytes)

Sets the size of individual writes to the service.

BlockBlobSeekableByteChannelWriteOptions setHeaders(BlobHttpHeaders headers)

Sets the HTTP headers to write.

BlockBlobSeekableByteChannelWriteOptions setMetadata(Map<String,String> metadata)

Sets the metadata to write.

BlockBlobSeekableByteChannelWriteOptions setRequestConditions(BlobRequestConditions conditions)

Sets the request conditions for writing to the blob.

BlockBlobSeekableByteChannelWriteOptions setTags(Map<String,String> tags)

Sets the tags to write.

BlockBlobSeekableByteChannelWriteOptions setTier(AccessTier tier)

Sets the access tier for the target blob.

Methods inherited from java.lang.Object

Constructor Details

BlockBlobSeekableByteChannelWriteOptions

public BlockBlobSeekableByteChannelWriteOptions(BlockBlobSeekableByteChannelWriteOptions.WriteMode mode)

Options constructor.

Parameters:

mode - What usage mode to open the channel in.

Method Details

getBlockSizeInBytes

public Long getBlockSizeInBytes()

Gets the size of individual writes to the service.

Returns:

The size of individual writes to the service.

getHeaders

public BlobHttpHeaders getHeaders()

Gets the HTTP headers to write.

Returns:

Blob HTTP headers to write.

getMetadata

public Map<String,String> getMetadata()

Gets the metadata to write.

Returns:

Blob metadata to write.

getRequestConditions

public BlobRequestConditions getRequestConditions()

Gets the request conditions for writing to the blob.

Returns:

Request conditions for writing to the blob.

getTags

public Map<String,String> getTags()

Gets the tags to write.

Returns:

Blob tags to write.

getTier

public AccessTier getTier()

Gets the access tier for the target blob.

Returns:

Access tier for the target blob.

getWriteMode

public BlockBlobSeekableByteChannelWriteOptions.WriteMode getWriteMode()

Gets the usage mode to be used by the resulting channel.

Returns:

Usage mode to be used by the resulting channel.

setBlockSizeInBytes

public BlockBlobSeekableByteChannelWriteOptions setBlockSizeInBytes(Long blockSizeInBytes)

Sets the size of individual writes to the service.

Parameters:

blockSizeInBytes - The size of individual writes to the service.

Returns:

The updated instance.

setHeaders

public BlockBlobSeekableByteChannelWriteOptions setHeaders(BlobHttpHeaders headers)

Sets the HTTP headers to write.

Parameters:

headers - Blob HTTP headers to write.

Returns:

The updated instance.

setMetadata

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

Sets the metadata to write.

Parameters:

metadata - Blob metadata to write.

Returns:

The updated instance.

setRequestConditions

public BlockBlobSeekableByteChannelWriteOptions setRequestConditions(BlobRequestConditions conditions)

Sets the request conditions for writing to the blob.

Parameters:

conditions - Request conditions for writing to the blob.

Returns:

The updated instance.

setTags

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

Sets the tags to write.

Parameters:

tags - Blob tags to write.

Returns:

The updated instance.

setTier

public BlockBlobSeekableByteChannelWriteOptions setTier(AccessTier tier)

Sets the access tier for the target blob.

Parameters:

tier - Access tier for the target blob.

Returns:

The updated instance.

Applies to