public class ApiCallMetricCollectionStage<OutputT> extends Object implements RequestToResponsePipeline<OutputT>
CoreMetric.API_CALL_DURATION
metric.Constructor and Description |
---|
ApiCallMetricCollectionStage(RequestPipeline<SdkHttpFullRequest,Response<OutputT>> wrapped) |
Modifier and Type | Method and Description |
---|---|
Response<OutputT> |
execute(SdkHttpFullRequest input,
RequestExecutionContext context)
Execute the pipeline with the given input.
|
public ApiCallMetricCollectionStage(RequestPipeline<SdkHttpFullRequest,Response<OutputT>> wrapped)
public Response<OutputT> execute(SdkHttpFullRequest input, RequestExecutionContext context) throws Exception
RequestPipeline
execute
in interface RequestPipeline<SdkHttpFullRequest,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 © 2022. All rights reserved.