Package com.azure.storage.blob.options
Class BlobInputStreamOptions
- java.lang.Object
-
- com.azure.storage.blob.options.BlobInputStreamOptions
-
public class BlobInputStreamOptions extends Object
Extended options that may be passed when opening a blob input stream.
-
-
Constructor Summary
Constructors Constructor Description BlobInputStreamOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getBlockSize()
ConsistentReadControl
getConsistentReadControl()
BlobRange
getRange()
BlobRequestConditions
getRequestConditions()
BlobInputStreamOptions
setBlockSize(Integer blockSize)
BlobInputStreamOptions
setConsistentReadControl(ConsistentReadControl consistentReadControl)
BlobInputStreamOptions
setRange(BlobRange range)
BlobInputStreamOptions
setRequestConditions(BlobRequestConditions requestConditions)
-
-
-
Method Detail
-
setRange
public BlobInputStreamOptions setRange(BlobRange range)
- Parameters:
range
-BlobRange
- Returns:
- The updated options.
-
getRequestConditions
public BlobRequestConditions getRequestConditions()
- Returns:
BlobRequestConditions
-
setRequestConditions
public BlobInputStreamOptions setRequestConditions(BlobRequestConditions requestConditions)
- Parameters:
requestConditions
-BlobRequestConditions
- Returns:
- The updated options.
-
getBlockSize
public Integer getBlockSize()
- Returns:
- The size of each data chunk returned from the service. If block size is large, input stream will make fewer network calls, but each individual call will send more data and will therefore take longer. The default value is 4 MB.
-
setBlockSize
public BlobInputStreamOptions setBlockSize(Integer blockSize)
- Parameters:
blockSize
- The size of each data chunk returned from the service. If block size is large, input stream will make fewer network calls, but each individual call will send more data and will therefore take longer. The default value is 4 MB.- Returns:
- The updated options.
-
getConsistentReadControl
public ConsistentReadControl getConsistentReadControl()
- Returns:
ConsistentReadControl
Default is E-Tag.
-
setConsistentReadControl
public BlobInputStreamOptions setConsistentReadControl(ConsistentReadControl consistentReadControl)
- Parameters:
consistentReadControl
-ConsistentReadControl
Default is E-Tag.- Returns:
- The updated options.
-
-