Class SyncChainedPollingStrategy<T,U>

java.lang.Object
com.azure.core.util.polling.SyncChainedPollingStrategy<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 final class SyncChainedPollingStrategy<T,U> extends Object implements SyncPollingStrategy<T,U>
A synchronous polling strategy that chains multiple synchronous polling strategies, finds the first strategy that can poll the current long-running operation, and polls with that strategy.
  • Constructor Details

    • SyncChainedPollingStrategy

      public SyncChainedPollingStrategy(List<SyncPollingStrategy<T,U>> strategies)
      Creates a synchronous chained polling strategy with a list of polling strategies.
      Parameters:
      strategies - the list of synchronous polling strategies
      Throws:
      NullPointerException - If strategies is null.
      IllegalArgumentException - If strategies is an empty list.
  • Method Details