BlobSeekableByteChannelReadOptions Class
- java.
lang. Object - com.
azure. storage. blob. options. BlobSeekableByteChannelReadOptions
- com.
public final class BlobSeekableByteChannelReadOptions
Extended options that may be passed when opening a blob seekable byte channel for reading.
Constructor Summary
| Constructor | Description |
|---|---|
| BlobSeekableByteChannelReadOptions() |
Creates a new instance of BlobSeekableByteChannelReadOptions. |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
BlobSeekableByteChannelReadOptions
public BlobSeekableByteChannelReadOptions()
Creates a new instance of BlobSeekableByteChannelReadOptions.
Method Details
getConsistentReadControl
public ConsistentReadControl getConsistentReadControl()
Gets the ConsistentReadControl Default is E-Tag.
Returns:
getContentValidationAlgorithm
public ContentValidationAlgorithm getContentValidationAlgorithm()
Gets the algorithm to use for transfer content validation on the response. See ContentValidationAlgorithm for more details.
Returns:
getInitialPosition
public Long getInitialPosition()
Gets the starting position of the resulting SeekableByteChannel. The channel will come with a prefetched range starting at this position.
Returns:
getReadSizeInBytes
public Integer 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:
getRequestConditions
setConsistentReadControl
public BlobSeekableByteChannelReadOptions setConsistentReadControl(ConsistentReadControl consistentReadControl)
Sets the ConsistentReadControl Default is E-Tag.
Parameters:
Returns:
setContentValidationAlgorithm
public BlobSeekableByteChannelReadOptions setContentValidationAlgorithm(ContentValidationAlgorithm contentValidationAlgorithm)
Sets the algorithm to use for transfer content validation on the response. See ContentValidationAlgorithm for more details.
Parameters:
Returns:
setInitialPosition
public BlobSeekableByteChannelReadOptions setInitialPosition(Long initialPosition)
Sets the starting position of the resulting SeekableByteChannel. The channel will come with a prefetched range starting at this position.
Parameters:
Returns:
setReadSizeInBytes
public BlobSeekableByteChannelReadOptions setReadSizeInBytes(Integer readSizeInBytes)
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:
Returns:
setRequestConditions
public BlobSeekableByteChannelReadOptions setRequestConditions(BlobRequestConditions requestConditions)
Sets the BlobRequestConditions.
Parameters:
Returns: