public final class ApiCallAttemptTimeoutTrackingStage<OutputT> extends Object implements RequestToResponsePipeline<OutputT>
RequestPipeline to manage the api call attempt timeout feature.| Constructor and Description |
|---|
ApiCallAttemptTimeoutTrackingStage(HttpClientDependencies dependencies,
RequestPipeline<SdkHttpFullRequest,Response<OutputT>> wrapped) |
| Modifier and Type | Method and Description |
|---|---|
Response<OutputT> |
execute(SdkHttpFullRequest request,
RequestExecutionContext context)
Start and end api call attempt timer around the execution of the api call attempt.
|
public ApiCallAttemptTimeoutTrackingStage(HttpClientDependencies dependencies, RequestPipeline<SdkHttpFullRequest,Response<OutputT>> wrapped)
public Response<OutputT> execute(SdkHttpFullRequest request, RequestExecutionContext context) throws Exception
ApiCallTimeoutTrackingStage#wrapped#execute(SdkHttpFullRequest) so the interrupt status doesn't leak out to the
callers code.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.wrappedWith(BiFunction).Copyright © 2022. All rights reserved.