Class SyncOperationLocationPollingStrategy<T,U>
java.lang.Object
com.azure.core.util.polling.SyncOperationResourcePollingStrategy<T,U>
com.azure.core.experimental.util.polling.SyncOperationLocationPollingStrategy<T,U>
- Type Parameters:
T- the type of the response type from a polling call, or BinaryData if raw response body should be keptU- 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 SyncOperationLocationPollingStrategy<T,U>
extends SyncOperationResourcePollingStrategy<T,U>
Implements a synchronous operation location polling strategy, from Operation-Location.
-
Constructor Summary
ConstructorsConstructorDescriptionSyncOperationLocationPollingStrategy(PollingStrategyOptions pollingStrategyOptions) Creates an instance of the operation resource polling strategy. -
Method Summary
Modifier and TypeMethodDescriptiongetResult(PollingContext<T> pollingContext, TypeReference<U> resultType) onInitialResponse(Response<?> response, PollingContext<T> pollingContext, TypeReference<T> pollResponseType) Methods inherited from class com.azure.core.util.polling.SyncOperationResourcePollingStrategy
canPoll, pollMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.core.util.polling.SyncPollingStrategy
cancel
-
Constructor Details
-
SyncOperationLocationPollingStrategy
Creates an instance of the operation resource polling strategy.- Parameters:
pollingStrategyOptions- options to configure this polling strategy.- Throws:
NullPointerException- ifpollingStrategyOptionsis null.
-
-
Method Details
-
onInitialResponse
public PollResponse<T> onInitialResponse(Response<?> response, PollingContext<T> pollingContext, TypeReference<T> pollResponseType) - Specified by:
onInitialResponsein interfaceSyncPollingStrategy<T,U> - Overrides:
onInitialResponsein classSyncOperationResourcePollingStrategy<T,U>
-
getResult
- Specified by:
getResultin interfaceSyncPollingStrategy<T,U> - Overrides:
getResultin classSyncOperationResourcePollingStrategy<T,U>
-