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 Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/