Class BlobSeekableByteChannelReadOptions

java.lang.Object
com.azure.storage.blob.options.BlobSeekableByteChannelReadOptions
All Implemented Interfaces:
com.azure.storage.common.ValidatableContent

public final class BlobSeekableByteChannelReadOptions extends Object implements com.azure.storage.common.ValidatableContent
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.
    • getContentValidationAlgorithm

      public com.azure.storage.common.ContentValidationAlgorithm getContentValidationAlgorithm()
      Gets the algorithm to use for transfer content validation on the response. See ContentValidationAlgorithm for more details.
      Specified by:
      getContentValidationAlgorithm in interface com.azure.storage.common.ValidatableContent
      Returns:
      The transfer validation checksum algorithm.
    • setContentValidationAlgorithm

      public BlobSeekableByteChannelReadOptions setContentValidationAlgorithm(com.azure.storage.common.ContentValidationAlgorithm contentValidationAlgorithm)
      Sets the algorithm to use for transfer content validation on the response. See ContentValidationAlgorithm for more details.
      Specified by:
      setContentValidationAlgorithm in interface com.azure.storage.common.ValidatableContent
      Parameters:
      contentValidationAlgorithm - The transfer validation checksum algorithm.
      Returns:
      The updated options.