Class SyncLocationPollingStrategy<T,U>

java.lang.Object
com.azure.core.util.polling.SyncLocationPollingStrategy<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 SyncLocationPollingStrategy<T,U> extends Object implements SyncPollingStrategy<T,U>
Implements a synchronous Location polling strategy.
  • Constructor Details

    • SyncLocationPollingStrategy

      public SyncLocationPollingStrategy(HttpPipeline httpPipeline)
      Creates an instance of the location polling strategy using a JSON serializer.
      Parameters:
      httpPipeline - an instance of HttpPipeline to send requests with
      Throws:
      NullPointerException - If httpPipeline is null.
    • SyncLocationPollingStrategy

      public SyncLocationPollingStrategy(HttpPipeline httpPipeline, ObjectSerializer serializer)
      Creates an instance of the location polling strategy.
      Parameters:
      httpPipeline - an instance of HttpPipeline to send requests with
      serializer - a custom serializer for serializing and deserializing polling responses
      Throws:
      NullPointerException - If httpPipeline is null.
    • SyncLocationPollingStrategy

      public SyncLocationPollingStrategy(HttpPipeline httpPipeline, ObjectSerializer serializer, Context context)
      Creates an instance of the location polling strategy.
      Parameters:
      httpPipeline - an instance of HttpPipeline to send requests with
      serializer - a custom serializer for serializing and deserializing polling responses
      context - an instance of Context
      Throws:
      NullPointerException - If httpPipeline is null.
    • SyncLocationPollingStrategy

      public SyncLocationPollingStrategy(HttpPipeline httpPipeline, String endpoint, ObjectSerializer serializer, Context context)
      Creates an instance of the location 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
      context - an instance of Context
      Throws:
      NullPointerException - If httpPipeline is null.
  • Method Details