BlobDownloadAsyncResponse Class
- java.
lang. Object - com.
azure. core. http. rest. ResponseBase<H,T> - com.
azure. storage. blob. models. BlobDownloadAsyncResponse
- com.
- com.
Implements
public final class BlobDownloadAsyncResponse
extends ResponseBase<BlobDownloadHeaders,Flux<ByteBuffer>>
implements Closeable
This class contains the response information returned from the server when downloading a blob.
Constructor Summary
Method Summary
Modifier and Type | Method and Description |
---|---|
void | close() |
Mono<Void> |
writeValueToAsync(AsynchronousByteChannel channel, ProgressReporter progressReporter)
Transfers content bytes to the AsynchronousByteChannel. |
Methods inherited from ResponseBase
Methods inherited from java.lang.Object
Constructor Details
BlobDownloadAsyncResponse
public BlobDownloadAsyncResponse(HttpRequest request, int statusCode, HttpHeaders headers, Flux
Constructs a BlobDownloadAsyncResponse.
Parameters:
request
- Request sent to the service.
statusCode
- Response status code returned by the service.
headers
- Raw headers returned by the response.
value
- Stream of download data being returned by the service.
deserializedHeaders
- Headers deserialized into an object.
Method Details
close
writeValueToAsync
public Mono
Transfers content bytes to the AsynchronousByteChannel.
Parameters:
channel
- The destination AsynchronousByteChannel.
progressReporter
- Optional ProgressReporter.
Returns:
A Mono that completes when transfer is completed.