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 the starting position of the resultingSeekableByteChannel
.setConsistentReadControl
(ConsistentReadControl consistentReadControl) setInitialPosition
(Long initialPosition) Sets the starting position of the resultingSeekableByteChannel
.setReadSizeInBytes
(Integer readSizeInBytes) setRequestConditions
(BlobRequestConditions requestConditions)
-
Constructor Details
-
BlobSeekableByteChannelReadOptions
public BlobSeekableByteChannelReadOptions()
-
-
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
- Returns:
BlobRequestConditions
-
setRequestConditions
public BlobSeekableByteChannelReadOptions setRequestConditions(BlobRequestConditions requestConditions) - Parameters:
requestConditions
-BlobRequestConditions
- Returns:
- The updated options.
-
getReadSizeInBytes
- 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
- 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
- Returns:
ConsistentReadControl
Default is E-Tag.
-
setConsistentReadControl
public BlobSeekableByteChannelReadOptions setConsistentReadControl(ConsistentReadControl consistentReadControl) - Parameters:
consistentReadControl
-ConsistentReadControl
Default is E-Tag.- Returns:
- The updated options.
-