Class SyncOperationResourcePollingStrategy<T,U>

java.lang.Object
com.azure.core.util.polling.SyncOperationResourcePollingStrategy<T,U>
Type Parameters:
T - the type of the response type from a polling call, or BinaryData if raw response body should be kept
U - the type of the final result object to deserialize into, or BinaryData if raw response body should be kept
All Implemented Interfaces:
SyncPollingStrategy<T,U>

public class SyncOperationResourcePollingStrategy<T,U> extends Object implements SyncPollingStrategy<T,U>
Implements a synchronous operation resource polling strategy, typically from Operation-Location.
  • Constructor Details

    • SyncOperationResourcePollingStrategy

      public SyncOperationResourcePollingStrategy(HttpPipeline httpPipeline)
      Creates an instance of the operation resource polling strategy using a JSON serializer and "Operation-Location" as the header for polling.
      Parameters:
      httpPipeline - an instance of HttpPipeline to send requests with
    • SyncOperationResourcePollingStrategy

      public SyncOperationResourcePollingStrategy(HttpPipeline httpPipeline, ObjectSerializer serializer, String operationLocationHeaderName)
      Creates an instance of the operation resource polling strategy.
      Parameters:
      httpPipeline - an instance of HttpPipeline to send requests with
      serializer - a custom serializer for serializing and deserializing polling responses
      operationLocationHeaderName - a custom header for polling the long-running operation
    • SyncOperationResourcePollingStrategy

      public SyncOperationResourcePollingStrategy(HttpPipeline httpPipeline, ObjectSerializer serializer, String operationLocationHeaderName, Context context)
      Creates an instance of the operation resource polling strategy.
      Parameters:
      httpPipeline - an instance of HttpPipeline to send requests with
      serializer - a custom serializer for serializing and deserializing polling responses
      operationLocationHeaderName - a custom header for polling the long-running operation
      context - an instance of Context
    • SyncOperationResourcePollingStrategy

      public SyncOperationResourcePollingStrategy(HttpPipeline httpPipeline, String endpoint, ObjectSerializer serializer, String operationLocationHeaderName, Context context)
      Creates an instance of the operation resource polling strategy.
      Parameters:
      httpPipeline - an instance of HttpPipeline to send requests with.
      endpoint - an endpoint for creating an absolute path when the path itself is relative.
      serializer - a custom serializer for serializing and deserializing polling responses.
      operationLocationHeaderName - a custom header for polling the long-running operation.
      context - an instance of Context.
  • Method Details