HttpPipelinePolicy Interface
public interface HttpPipelinePolicy
A policy within the HttpPipeline.
Method Summary
Modifier and Type | Method and Description |
---|---|
default
Http |
getPipelinePosition()
Gets the position to place the policy. |
abstract
Mono<Http |
process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)
Processes provided request context and invokes the next policy. |
default
Http |
processSync(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next)
Processes provided request context and invokes the next policy synchronously. |
Method Details
getPipelinePosition
public default HttpPipelinePosition getPipelinePosition()
Gets the position to place the policy.
By default pipeline policies are positioned PER_RETRY.
Returns:
process
public abstract Mono
Processes provided request context and invokes the next policy.
Parameters:
Returns:
processSync
public default HttpResponse processSync(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next)
Processes provided request context and invokes the next policy synchronously.
Parameters:
Returns:
Applies to
Azure SDK for Java