次の方法で共有


BlobSeekableByteChannelReadOptions Class

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

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
ConsistentReadControl 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.

BlobRequestConditions getRequestConditions()

Gets the BlobRequestConditions.

BlobSeekableByteChannelReadOptions setConsistentReadControl(ConsistentReadControl consistentReadControl)

Sets the ConsistentReadControl Default is E-Tag.

BlobSeekableByteChannelReadOptions setInitialPosition(Long initialPosition)

Sets the starting position of the resulting SeekableByteChannel.

BlobSeekableByteChannelReadOptions setReadSizeInBytes(Integer readSizeInBytes)

Sets the size of each data read from the service.

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

ConsistentReadControl Default is E-Tag.

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.

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.

getRequestConditions

public BlobRequestConditions getRequestConditions()

Gets the BlobRequestConditions.

Returns:

setConsistentReadControl

public BlobSeekableByteChannelReadOptions setConsistentReadControl(ConsistentReadControl consistentReadControl)

Sets the ConsistentReadControl Default is E-Tag.

Parameters:

consistentReadControl - ConsistentReadControl Default is E-Tag.

Returns:

The updated options.

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.

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.

setRequestConditions

public BlobSeekableByteChannelReadOptions setRequestConditions(BlobRequestConditions requestConditions)

Sets the BlobRequestConditions.

Parameters:

requestConditions - BlobRequestConditions

Returns:

The updated options.

Applies to