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
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro