Package com.azure.storage.blob.options
Class BlobSeekableByteChannelReadOptions
java.lang.Object
com.azure.storage.blob.options.BlobSeekableByteChannelReadOptions
Extended options that may be passed when opening a blob seekable byte channel for reading.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theConsistentReadControl
Default is E-Tag.Gets the starting position of the resultingSeekableByteChannel
.Gets the size of each data read from the service.Gets theBlobRequestConditions
.setConsistentReadControl
(ConsistentReadControl consistentReadControl) Sets theConsistentReadControl
Default is E-Tag.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 theConsistentReadControl
Default is E-Tag.- Returns:
ConsistentReadControl
Default is E-Tag.
-
setConsistentReadControl
public BlobSeekableByteChannelReadOptions setConsistentReadControl(ConsistentReadControl consistentReadControl) Sets theConsistentReadControl
Default is E-Tag.- Parameters:
consistentReadControl
-ConsistentReadControl
Default is E-Tag.- Returns:
- The updated options.
-