RequestPipeline<SdkHttpFullRequest,CompletableFuture<Response<OutputT>>>
public class AsyncRetryableStage<OutputT> extends Object implements RequestPipeline<SdkHttpFullRequest,CompletableFuture<Response<OutputT>>>
Constructor | Description |
---|---|
AsyncRetryableStage(HttpClientDependencies dependencies,
RequestPipeline<SdkHttpFullRequest,CompletableFuture<Response<OutputT>>> requestPipeline) |
Modifier and Type | Method | Description |
---|---|---|
CompletableFuture<Response<OutputT>> |
execute(SdkHttpFullRequest request,
RequestExecutionContext context) |
Execute the pipeline with the given input.
|
public AsyncRetryableStage(HttpClientDependencies dependencies, RequestPipeline<SdkHttpFullRequest,CompletableFuture<Response<OutputT>>> requestPipeline)
public CompletableFuture<Response<OutputT>> execute(SdkHttpFullRequest request, RequestExecutionContext context) throws Exception
RequestPipeline
execute
in interface RequestPipeline<SdkHttpFullRequest,CompletableFuture<Response<OutputT>>>
request
- 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.wrap(BiFunction)
.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.