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
Modifier and Type | Method and Description |
---|---|
Consistent |
getConsistentReadControl()
Gets the ConsistentReadControl Default is E-Tag. |
Long |
getInitialPosition()
Gets the starting position of the resulting SeekableByteChannel. |
Integer |
getReadSizeInBytes()
Gets the size of each data read from the service. |
Blob |
getRequestConditions()
Gets the BlobRequestConditions. |
Blob |
setConsistentReadControl(ConsistentReadControl consistentReadControl)
Sets the ConsistentReadControl Default is E-Tag. |
Blob |
setInitialPosition(Long initialPosition)
Sets the starting position of the resulting SeekableByteChannel. |
Blob |
setReadSizeInBytes(Integer readSizeInBytes)
Sets the size of each data read from the service. |
Blob |
setRequestConditions(BlobRequestConditions requestConditions)
Sets the BlobRequestConditions. |
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:
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:
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: