public class ParallelStreamUtil extends Object
static ForkJoinPool
forkJoinPool
ParallelStreamUtil()
static <T> void
exec(List<T> input, Consumer<T> consumer, int timeoutSeconds)
static <T,R> List<R>
exec(List<T> input, Function<T,R> function, int timeoutSeconds)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static ForkJoinPool forkJoinPool
public ParallelStreamUtil()
public static <T,R> List<R> exec(List<T> input, Function<T,R> function, int timeoutSeconds) throws Exception
Exception
public static <T> void exec(List<T> input, Consumer<T> consumer, int timeoutSeconds) throws Exception
Copyright © 2023. All rights reserved.