Package ru.bitel.common.concurrent
Class ConcurrentUtils
java.lang.Object
ru.bitel.common.concurrent.ConcurrentUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
awaitFutures
(List<? extends Future<?>> futures) static boolean
awaitFutures
(List<? extends Future<?>> futures, long timeout, TimeUnit unit) static boolean
-
Constructor Details
-
ConcurrentUtils
public ConcurrentUtils()
-
-
Method Details
-
awaitFutures
public static boolean awaitFutures(List<? extends Future<?>> futures, long timeout, TimeUnit unit) throws InterruptedException - Throws:
InterruptedException
-
awaitFutures
- Throws:
InterruptedException
-
invokeAll
public static boolean invokeAll(List<? extends Runnable> tasks, int threadCount) throws InterruptedException - Throws:
InterruptedException
-