Package com.azure.storage.blob.options
Class BlockBlobSeekableByteChannelWriteOptions
java.lang.Object
com.azure.storage.blob.options.BlockBlobSeekableByteChannelWriteOptions
Options for obtaining a
SeekableByteChannel
backed by an Azure Storage Share File.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Mode to open the channel for writing. -
Constructor Summary
ConstructorsConstructorDescriptionOptions constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the size of individual writes to the service.Gets the HTTP headers to write.Gets the metadata to write.Gets the request conditions for writing to the blob.getTags()
Gets the tags to write.getTier()
Gets the access tier for the target blob.Gets the usage mode to be used by the resulting channel.setBlockSizeInBytes
(Long blockSizeInBytes) Sets the size of individual writes to the service.setHeaders
(BlobHttpHeaders headers) Sets the HTTP headers to write.setMetadata
(Map<String, String> metadata) Sets the metadata to write.setRequestConditions
(BlobRequestConditions conditions) Sets the request conditions for writing to the blob.Sets the tags to write.setTier
(AccessTier tier) Sets the access tier for the target blob.
-
Constructor Details
-
BlockBlobSeekableByteChannelWriteOptions
public BlockBlobSeekableByteChannelWriteOptions(BlockBlobSeekableByteChannelWriteOptions.WriteMode mode) Options constructor.- Parameters:
mode
- What usage mode to open the channel in.- Throws:
NullPointerException
- Ifmode
is null.
-
-
Method Details
-
getWriteMode
Gets the usage mode to be used by the resulting channel.- Returns:
- Usage mode to be used by the resulting channel.
-
getBlockSizeInBytes
Gets the size of individual writes to the service.- Returns:
- The size of individual writes to the service.
-
setBlockSizeInBytes
Sets the size of individual writes to the service.- Parameters:
blockSizeInBytes
- The size of individual writes to the service.- Returns:
- The updated instance.
-
getHeaders
Gets the HTTP headers to write.- Returns:
- Blob HTTP headers to write.
-
setHeaders
Sets the HTTP headers to write.- Parameters:
headers
- Blob HTTP headers to write.- Returns:
- The updated instance.
-
getMetadata
Gets the metadata to write.- Returns:
- Blob metadata to write.
-
setMetadata
Sets the metadata to write.- Parameters:
metadata
- Blob metadata to write.- Returns:
- The updated instance.
-
getTags
Gets the tags to write.- Returns:
- Blob tags to write.
-
setTags
Sets the tags to write.- Parameters:
tags
- Blob tags to write.- Returns:
- The updated instance.
-
getTier
Gets the access tier for the target blob.- Returns:
- Access tier for the target blob.
-
setTier
Sets the access tier for the target blob.- Parameters:
tier
- Access tier for the target blob.- Returns:
- The updated instance.
-
getRequestConditions
Gets the request conditions for writing to the blob.- Returns:
- Request conditions for writing to the blob.
-
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.
-