HttpPipelineNextSyncPolicy Class

  • java.lang.Object
    • com.azure.core.http.HttpPipelineNextSyncPolicy

public class HttpPipelineNextSyncPolicy

A class that invokes the next policy in the HTTP pipeline in a synchronous manner.

This class encapsulates the state of the HTTP pipeline call and provides a method to process the next policy in the pipeline synchronously.

It provides methods to process the next policy and clone the current instance of the next pipeline policy.

This class is useful when you want to send an HTTP request through the HTTP pipeline and need to process the next policy in the pipeline in a synchronous manner.

Method Summary

Modifier and Type Method and Description
HttpPipelineNextSyncPolicy clone()

Creates a new instance of this instance.

HttpResponse processSync()

Invokes the next HttpPipelinePolicy.

Methods inherited from java.lang.Object

Method Details

clone

public HttpPipelineNextSyncPolicy clone()

Creates a new instance of this instance.

Overrides:

HttpPipelineNextSyncPolicy.clone()

Returns:

A new instance of this next pipeline sync policy.

processSync

public HttpResponse processSync()

Invokes the next HttpPipelinePolicy.

Returns:

The response.

Applies to