public final class ExecutionEngine extends Object
| Constructor and Description | 
|---|
ExecutionEngine()  | 
| Modifier and Type | Method and Description | 
|---|---|
static <CLIENT_TYPE,PARENT_TYPE,RESULT_TYPE> | 
executeWithRetry(CLIENT_TYPE client,
                PARENT_TYPE parentObject,
                StorageRequest<CLIENT_TYPE,PARENT_TYPE,RESULT_TYPE> task,
                RetryPolicyFactory policyFactory,
                OperationContext opContext)
Executes an operation and enforces a retrypolicy to handle any potential errors 
 | 
public static <CLIENT_TYPE,PARENT_TYPE,RESULT_TYPE> RESULT_TYPE executeWithRetry(CLIENT_TYPE client,
                                                                                 PARENT_TYPE parentObject,
                                                                                 StorageRequest<CLIENT_TYPE,PARENT_TYPE,RESULT_TYPE> task,
                                                                                 RetryPolicyFactory policyFactory,
                                                                                 OperationContext opContext)
                                                                          throws StorageException
CLIENT_TYPE - The type of the service clientPARENT_TYPE - The type of the parent object, i.e. CloudBlobContainer for downloadAttributes etc.RESULT_TYPE - The type of the expected resultclient - the service client associated with the requestparentObject - the parent objecttask - the StorageRequest to executepolicyFactory - the factory used to generate a new retry policy instanceopContext - an object used to track the execution of the operationStorageException - an exception representing any error which occurred during the operation.Copyright © 2019. All rights reserved.