Package ru.bitel.common.concurrent
Class ConcurrentUtils
java.lang.Object
ru.bitel.common.concurrent.ConcurrentUtils
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic booleanawaitFutures(List<? extends Future<?>> futures) static booleanawaitFutures(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
 
 -