ExecutionEngine Class
- java.
lang. Object - com.
microsoft. azure. storage. core. ExecutionEngine
- com.
public class ExecutionEngine
RESERVED FOR INTERNAL USE. A class that handles execution of StorageOperations and enforces retry policies.
Method Summary
Modifier and Type | Method and Description |
---|---|
static<CLIENT_TYPE, PARENT_TYPE, RESULT_TYPE> RESULT_TYPE |
executeWithRetry(final CLIENT_TYPE client, final PARENT_TYPE parentObject, final StorageRequest<CLIENT_TYPE, PARENT_TYPE, RESULT_TYPE> task, final RetryPolicyFactory policyFactory, final OperationContext opContext)
Executes an operation and enforces a retrypolicy to handle any potential errors |
Method Details
executeWithRetry
public static static
Executes an operation and enforces a retrypolicy to handle any potential errors
Parameters:
client
- the service client associated with the request
parentObject
- the parent object
task
- the StorageRequest to execute
policyFactory
- the factory used to generate a new retry policy instance
opContext
- an object used to track the execution of the operation
Returns:
the result of the operation
Throws:
StorageException
- an exception representing any error which occurred during the operation.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java