RequestPipeline<SdkHttpFullRequest,Response<OutputT>>
, RequestToResponsePipeline<OutputT>
public class RetryableStage<OutputT> extends Object implements RequestToResponsePipeline<OutputT>
Modifier and Type | Field | Description |
---|---|---|
static String |
HEADER_SDK_RETRY_INFO |
Constructor | Description |
---|---|
RetryableStage(HttpClientDependencies dependencies,
RequestPipeline<SdkHttpFullRequest,Response<OutputT>> requestPipeline) |
Modifier and Type | Method | Description |
---|---|---|
Response<OutputT> |
execute(SdkHttpFullRequest request,
RequestExecutionContext context) |
Execute the pipeline with the given input.
|
public static final String HEADER_SDK_RETRY_INFO
public RetryableStage(HttpClientDependencies dependencies, RequestPipeline<SdkHttpFullRequest,Response<OutputT>> requestPipeline)
public Response<OutputT> execute(SdkHttpFullRequest request, RequestExecutionContext context) throws Exception
RequestPipeline
execute
in interface RequestPipeline<SdkHttpFullRequest,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.