public class DownloadResponse extends com.microsoft.rest.v2.RestResponse<BlobsDownloadHeaders,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.
|
BlobsDownloadHeaders |
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 - RetryReaderOptionsFlowable which emits the data as ByteBuffers.public int statusCode()
statusCode in class com.microsoft.rest.v2.RestResponse<BlobsDownloadHeaders,io.reactivex.Flowable<ByteBuffer>>public BlobsDownloadHeaders headers()
headers in class com.microsoft.rest.v2.RestResponse<BlobsDownloadHeaders,io.reactivex.Flowable<ByteBuffer>>public Map<String,String> rawHeaders()
rawHeaders in class com.microsoft.rest.v2.RestResponse<BlobsDownloadHeaders,io.reactivex.Flowable<ByteBuffer>>public io.reactivex.Flowable<ByteBuffer> body()
body(RetryReaderOptions) with null.body in class com.microsoft.rest.v2.RestResponse<BlobsDownloadHeaders,io.reactivex.Flowable<ByteBuffer>>public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2018. All rights reserved.