public class ManifestReadThreadPool extends Object
Constructor and Description |
---|
ManifestReadThreadPool() |
Modifier and Type | Method and Description |
---|---|
static ThreadPoolExecutor |
getExecutorService(Integer threadNum) |
static <T,U> Iterator<T> |
randomlyExecuteSequentialReturn(java.util.function.Function<U,List<T>> processor,
List<U> input,
Integer threadNum)
This method aims to parallel process tasks with randomly but return values sequentially.
|
static <T,U> Iterable<T> |
sequentialBatchedExecute(java.util.function.Function<U,List<T>> processor,
List<U> input,
Integer threadNum)
This method aims to parallel process tasks with memory control and sequentially.
|
public static ThreadPoolExecutor getExecutorService(@Nullable Integer threadNum)
public static <T,U> Iterable<T> sequentialBatchedExecute(java.util.function.Function<U,List<T>> processor, List<U> input, @Nullable Integer threadNum)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.