Class BlobSeekableByteChannelReadOptions
java.lang.Object
com.azure.storage.blob.options.BlobSeekableByteChannelReadOptions
- All Implemented Interfaces:
com.azure.storage.common.ValidatableContent
public final class BlobSeekableByteChannelReadOptions
extends Object
implements com.azure.storage.common.ValidatableContent
Extended options that may be passed when opening a blob seekable byte channel for reading.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theConsistentReadControlDefault is E-Tag.com.azure.storage.common.ContentValidationAlgorithmGets the algorithm to use for transfer content validation on the response.Gets the starting position of the resultingSeekableByteChannel.Gets the size of each data read from the service.Gets theBlobRequestConditions.setConsistentReadControl(ConsistentReadControl consistentReadControl) Sets theConsistentReadControlDefault is E-Tag.setContentValidationAlgorithm(com.azure.storage.common.ContentValidationAlgorithm contentValidationAlgorithm) Sets the algorithm to use for transfer content validation on the response.setInitialPosition(Long initialPosition) Sets the starting position of the resultingSeekableByteChannel.setReadSizeInBytes(Integer readSizeInBytes) Sets the size of each data read from the service.setRequestConditions(BlobRequestConditions requestConditions) Sets theBlobRequestConditions.
-
Constructor Details
-
BlobSeekableByteChannelReadOptions
public BlobSeekableByteChannelReadOptions()Creates a new instance ofBlobSeekableByteChannelReadOptions.
-
-
Method Details
-
getInitialPosition
Gets the starting position of the resultingSeekableByteChannel. The channel will come with a prefetched range starting at this position.- Returns:
- Initial position of the resulting channel.
-
setInitialPosition
Sets the starting position of the resultingSeekableByteChannel. The channel will come with a prefetched range starting at this position.- Parameters:
initialPosition- Initial position of the resulting channel.- Returns:
- The updated options.
-
getRequestConditions
Gets theBlobRequestConditions.- Returns:
BlobRequestConditions
-
setRequestConditions
public BlobSeekableByteChannelReadOptions setRequestConditions(BlobRequestConditions requestConditions) Sets theBlobRequestConditions.- Parameters:
requestConditions-BlobRequestConditions- Returns:
- The updated options.
-
getReadSizeInBytes
Gets the size of each data read from the service. If read size is large, the channel will make fewer network calls, but each individual call will be larger. The default value is 4 MB.- Returns:
- The size of each data read from the service. If read size is large, the channel will make fewer network calls, but each individual call will be larger. The default value is 4 MB.
-
setReadSizeInBytes
Sets the size of each data read from the service. If read size is large, the channel will make fewer network calls, but each individual call will be larger. The default value is 4 MB.- Parameters:
readSizeInBytes- The size of each data read from the service. If read size is large, the channel will make fewer network calls, but each individual call will be larger. The default value is 4 MB.- Returns:
- The updated options.
-
getConsistentReadControl
Gets theConsistentReadControlDefault is E-Tag.- Returns:
ConsistentReadControlDefault is E-Tag.
-
setConsistentReadControl
public BlobSeekableByteChannelReadOptions setConsistentReadControl(ConsistentReadControl consistentReadControl) Sets theConsistentReadControlDefault is E-Tag.- Parameters:
consistentReadControl-ConsistentReadControlDefault is E-Tag.- Returns:
- The updated options.
-
getContentValidationAlgorithm
public com.azure.storage.common.ContentValidationAlgorithm getContentValidationAlgorithm()Gets the algorithm to use for transfer content validation on the response. SeeContentValidationAlgorithmfor more details.- Specified by:
getContentValidationAlgorithmin interfacecom.azure.storage.common.ValidatableContent- Returns:
- The transfer validation checksum algorithm.
-
setContentValidationAlgorithm
public BlobSeekableByteChannelReadOptions setContentValidationAlgorithm(com.azure.storage.common.ContentValidationAlgorithm contentValidationAlgorithm) Sets the algorithm to use for transfer content validation on the response. SeeContentValidationAlgorithmfor more details.- Specified by:
setContentValidationAlgorithmin interfacecom.azure.storage.common.ValidatableContent- Parameters:
contentValidationAlgorithm- The transfer validation checksum algorithm.- Returns:
- The updated options.
-