BlobInputStreamOptions Class
- java.
lang. Object - com.
azure. storage. blob. options. BlobInputStreamOptions
- com.
public class BlobInputStreamOptions
Extended options that may be passed when opening a blob input stream.
Constructor Summary
Constructor | Description |
---|---|
BlobInputStreamOptions() |
Creates a new instance of BlobInputStreamOptions. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
getBlockSize()
Gets the size of each data chunk returned from the service. |
Consistent |
getConsistentReadControl()
Gets the ConsistentReadControl Default is E-Tag. |
Blob |
getRange()
Gets the BlobRange. |
Blob |
getRequestConditions()
Gets the BlobRequestConditions. |
Blob |
setBlockSize(Integer blockSize)
Sets the size of each data chunk returned from the service. |
Blob |
setConsistentReadControl(ConsistentReadControl consistentReadControl)
Sets the ConsistentReadControl Default is E-Tag. |
Blob |
setRange(BlobRange range)
Sets the BlobRange. |
Blob |
setRequestConditions(BlobRequestConditions requestConditions)
Sets the BlobRequestConditions. |
Methods inherited from java.lang.Object
Constructor Details
BlobInputStreamOptions
public BlobInputStreamOptions()
Creates a new instance of BlobInputStreamOptions.
Method Details
getBlockSize
public Integer getBlockSize()
Gets 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:
getConsistentReadControl
public ConsistentReadControl getConsistentReadControl()
Gets the ConsistentReadControl Default is E-Tag.
Returns:
getRequestConditions
setBlockSize
public BlobInputStreamOptions setBlockSize(Integer blockSize)
Sets 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.
Parameters:
Returns:
setConsistentReadControl
public BlobInputStreamOptions setConsistentReadControl(ConsistentReadControl consistentReadControl)
Sets the ConsistentReadControl Default is E-Tag.
Parameters:
Returns:
setRange
setRequestConditions
public BlobInputStreamOptions setRequestConditions(BlobRequestConditions requestConditions)
Sets the BlobRequestConditions.
Parameters:
Returns: