Freigeben über


BlobDownloadAsyncResponse Class

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

Constructor Description
BlobDownloadAsyncResponse(HttpRequest request, int statusCode, HttpHeaders headers, Flux<ByteBuffer> value, BlobDownloadHeaders deserializedHeaders)

Constructs a BlobDownloadAsyncResponse.

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 value, BlobDownloadHeaders deserializedHeaders)

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

public void close()

Throws:

writeValueToAsync

public Mono writeValueToAsync(AsynchronousByteChannel channel, ProgressReporter progressReporter)

Transfers content bytes to the AsynchronousByteChannel.

Parameters:

channel - The destination AsynchronousByteChannel.
progressReporter - Optional ProgressReporter.

Returns:

A Mono that completes when transfer is completed.

Applies to