public class AsyncUtils extends Object
| 构造器和说明 |
|---|
AsyncUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T,OUT> List<OUT> |
batch(ExecutorService executorService,
List<List<T>> lists,
BatchExecutor<T,OUT> batchExecutor) |
static <T,OUT> List<OUT> |
batch(ExecutorService executorService,
List<T> list,
int aFew,
BatchExecutor<T,OUT> batchExecutor) |
static <OUT> List<OUT> |
merge(ExecutorService executorService,
boolean ignoreException,
Concurrent<OUT>... concurrents) |
public static <T,OUT> List<OUT> batch(ExecutorService executorService, List<T> list, int aFew, BatchExecutor<T,OUT> batchExecutor)
public static <T,OUT> List<OUT> batch(ExecutorService executorService, List<List<T>> lists, BatchExecutor<T,OUT> batchExecutor)
@SafeVarargs public static <OUT> List<OUT> merge(ExecutorService executorService, boolean ignoreException, Concurrent<OUT>... concurrents)
Copyright © 2020–2021 ruleengine. All rights reserved.