TimeoutPolicy Class

  • java.lang.Object
    • com.azure.core.http.policy.TimeoutPolicy

Implements

@Deprecated
public class TimeoutPolicy
implements HttpPipelinePolicy

Note

This class has been deprecated. Consider configuring timeouts with HttpClientOptions.

The pipeline policy that limits the time allowed between sending a request and receiving the response.

Constructor Summary

Constructor Description
TimeoutPolicy(Duration timeoutDuration)

Creates a TimeoutPolicy.

Method Summary

Modifier and Type Method and Description
reactor.core.publisher.Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)

Processes provided request context and invokes the next policy.

Methods inherited from java.lang.Object

Constructor Details

TimeoutPolicy

public TimeoutPolicy(Duration timeoutDuration)

Creates a TimeoutPolicy.

Parameters:

timeoutDuration - the timeout duration

Method Details

process

public Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)

Processes provided request context and invokes the next policy.

Parameters:

context
next

Applies to