public final class AsyncApiCallAttemptMetricCollectionStage<OutputT> extends Object implements RequestPipeline<SdkHttpFullRequest,CompletableFuture<Response<OutputT>>>
| Constructor and Description |
|---|
AsyncApiCallAttemptMetricCollectionStage(RequestPipeline<SdkHttpFullRequest,CompletableFuture<Response<OutputT>>> wrapped) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Response<OutputT>> |
execute(SdkHttpFullRequest input,
RequestExecutionContext context)
Execute the pipeline with the given input.
|
public AsyncApiCallAttemptMetricCollectionStage(RequestPipeline<SdkHttpFullRequest,CompletableFuture<Response<OutputT>>> wrapped)
public CompletableFuture<Response<OutputT>> execute(SdkHttpFullRequest input, RequestExecutionContext context) throws Exception
RequestPipelineexecute in interface RequestPipeline<SdkHttpFullRequest,CompletableFuture<Response<OutputT>>>input - Input to pipeline.context - Context containing both request dependencies, and a container for any mutable state that must be shared
between stages.Exception - If any error occurs. This will be thrown out of the pipeline, if exceptions must be handled see
RequestPipelineBuilder.wrappedWith(BiFunction).Copyright © 2020. All rights reserved.