Interface RequestPipeline<InputT,OutputT>
-
- Type Parameters:
InputT
- Source type, provided as input param to pipeline.OutputT
- Output type returned by the pipeline.
- All Known Subinterfaces:
MutableRequestToRequestPipeline
,RequestToRequestPipeline
,RequestToResponsePipeline<OutputT>
- All Known Implementing Classes:
AfterExecutionInterceptorsStage
,AfterTransmissionExecutionInterceptorsStage
,ApiCallAttemptMetricCollectionStage
,ApiCallAttemptTimeoutTrackingStage
,ApiCallMetricCollectionStage
,ApiCallTimeoutTrackingStage
,ApplyTransactionIdStage
,ApplyUserAgentStage
,AsyncApiCallAttemptMetricCollectionStage
,AsyncApiCallMetricCollectionStage
,AsyncApiCallTimeoutTrackingStage
,AsyncBeforeTransmissionExecutionInterceptorsStage
,AsyncExecutionFailureExceptionReportingStage
,AsyncRetryableStage
,AsyncSigningStage
,BeforeTransmissionExecutionInterceptorsStage
,BeforeUnmarshallingExecutionInterceptorsStage
,CompressRequestStage
,ExecutionFailureExceptionReportingStage
,HandleResponseStage
,HttpChecksumStage
,MakeAsyncHttpRequestStage
,MakeHttpRequestStage
,MakeRequestImmutableStage
,MakeRequestMutableStage
,MergeCustomHeadersStage
,MergeCustomQueryParamsStage
,QueryParametersToBodyStage
,RetryableStage
,SigningStage
,StreamManagingStage
,TimeoutExceptionHandlingStage
,UnwrapResponseContainer
public interface RequestPipeline<InputT,OutputT>
Represents a series of transformations when executing a SDK request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OutputT
execute(InputT input, RequestExecutionContext context)
Execute the pipeline with the given input.
-
-
-
Method Detail
-
execute
OutputT execute(InputT input, RequestExecutionContext context) throws Exception
Execute the pipeline with the given input.- Parameters:
input
- Input to pipeline.context
- Context containing both request dependencies, and a container for any mutable state that must be shared between stages.- Returns:
- Output of pipeline.
- Throws:
Exception
- If any error occurs. This will be thrown out of the pipeline, if exceptions must be handled seeRequestPipelineBuilder.wrappedWith(BiFunction)
.
-
-