Class BlobSeekableByteChannelReadOptions

java.lang.Object
com.azure.storage.blob.options.BlobSeekableByteChannelReadOptions

public final class BlobSeekableByteChannelReadOptions extends Object
Extended options that may be passed when opening a blob seekable byte channel for reading.
  • Constructor Details

  • Method Details

    • 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:
      Initial position of the resulting channel.
    • 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:
      initialPosition - Initial position of the resulting channel.
      Returns:
      The updated options.
    • getRequestConditions

      public BlobRequestConditions getRequestConditions()
      Returns:
      BlobRequestConditions
    • setRequestConditions

      public BlobSeekableByteChannelReadOptions setRequestConditions(BlobRequestConditions requestConditions)
      Parameters:
      requestConditions - BlobRequestConditions
      Returns:
      The updated options.
    • 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:
      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

      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:
      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

      public ConsistentReadControl getConsistentReadControl()
      Gets the ConsistentReadControl Default is E-Tag.
      Returns:
      ConsistentReadControl Default is E-Tag.
    • setConsistentReadControl

      public BlobSeekableByteChannelReadOptions setConsistentReadControl(ConsistentReadControl consistentReadControl)
      Sets the ConsistentReadControl Default is E-Tag.
      Parameters:
      consistentReadControl - ConsistentReadControl Default is E-Tag.
      Returns:
      The updated options.