Class SyncStatusCheckPollingStrategy<T,U>

java.lang.Object
com.azure.core.util.polling.SyncStatusCheckPollingStrategy<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 SyncStatusCheckPollingStrategy<T,U> extends Object implements SyncPollingStrategy<T,U>
Fallback polling strategy that doesn't poll but exits successfully if no other polling strategies are detected and status code is 2xx.
  • Constructor Details

    • SyncStatusCheckPollingStrategy

      public SyncStatusCheckPollingStrategy()
      Creates a status check polling strategy with a JSON serializer.
    • SyncStatusCheckPollingStrategy

      public SyncStatusCheckPollingStrategy(ObjectSerializer serializer)
      Creates a status check polling strategy with a custom object serializer.
      Parameters:
      serializer - a custom serializer for serializing and deserializing polling responses
  • Method Details