public class OperationController extends Object
| Constructor and Description |
|---|
OperationController() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
run(Operation operation) |
static <T> List<T> |
runInParallel(List<Operation<T>> tasks) |
static <T> List<T> |
runInParallel(List<Operation<T>> tasks,
int maxThread) |
static Object |
runWithRetry(int maxAttempts,
Operation operation) |
static Object |
runWithRetryThrowException(int maxAttempts,
Operation operation,
boolean throwException) |
public static Object runWithRetryThrowException(int maxAttempts, Operation operation, boolean throwException) throws Exception
Exceptionpublic static <T> List<T> runInParallel(List<Operation<T>> tasks, int maxThread) throws InterruptedException, ExecutionException
public static <T> List<T> runInParallel(List<Operation<T>> tasks) throws InterruptedException, ExecutionException
Copyright © 2016. All rights reserved.