ExecutionEngine Class

  • java.lang.Object
    • com.microsoft.azure.storage.core.ExecutionEngine

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 RESULT_TYPE executeWithRetry(final CLIENT_TYPE client, final PARENT_TYPE parentObject, final StorageRequest task, final RetryPolicyFactory policyFactory, final OperationContext opContext)

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