public class DownloadResponse extends com.microsoft.rest.v2.RestResponse<BlobDownloadHeaders,io.reactivex.Flowable<ByteBuffer>> implements Closeable
DownloadResponse
wraps the protocol-layer response from BlobURL.download(BlobRange,
BlobAccessConditions, boolean)
to help provide information for retrying.Modifier and Type | Method and Description |
---|---|
io.reactivex.Flowable<ByteBuffer> |
body()
Equivalent to calling
body(RetryReaderOptions) with null . |
io.reactivex.Flowable<ByteBuffer> |
body(RetryReaderOptions options)
Constructs a new
RetryReader stream for reliably reading data if desired (if options != null and
options.maxRetryRequests > 0 . |
void |
close()
Disposes of the connection associated with this stream response.
|
BlobDownloadHeaders |
headers() |
Map<String,String> |
rawHeaders() |
int |
statusCode() |
public io.reactivex.Flowable<ByteBuffer> body(RetryReaderOptions options)
RetryReader
stream for reliably reading data if desired (if options != null
and
options.maxRetryRequests > 0
. If retries are enabled, if a connection fails while reading, the RetryReader
will make additional requests to reestablish a connection and continue reading.options
- RetryReaderOptions
Flowable
which emits the data as ByteBuffer
s.public int statusCode()
statusCode
in class com.microsoft.rest.v2.RestResponse<BlobDownloadHeaders,io.reactivex.Flowable<ByteBuffer>>
public BlobDownloadHeaders headers()
headers
in class com.microsoft.rest.v2.RestResponse<BlobDownloadHeaders,io.reactivex.Flowable<ByteBuffer>>
public Map<String,String> rawHeaders()
rawHeaders
in class com.microsoft.rest.v2.RestResponse<BlobDownloadHeaders,io.reactivex.Flowable<ByteBuffer>>
public io.reactivex.Flowable<ByteBuffer> body()
body(RetryReaderOptions)
with null
.body
in class com.microsoft.rest.v2.RestResponse<BlobDownloadHeaders,io.reactivex.Flowable<ByteBuffer>>
public void close()
close
in interface Closeable
close
in interface AutoCloseable
This documentation was released into the public domain.