public class ConcurrentUtils
extends java.lang.Object
Constructor and Description |
---|
ConcurrentUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
awaitFutures(java.util.List<? extends java.util.concurrent.Future<?>> futures) |
static boolean |
awaitFutures(java.util.List<? extends java.util.concurrent.Future<?>> futures,
long timeout,
java.util.concurrent.TimeUnit unit) |
static boolean |
invokeAll(java.util.List<? extends java.lang.Runnable> tasks,
int threadCount) |
public static boolean awaitFutures(java.util.List<? extends java.util.concurrent.Future<?>> futures, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public static boolean awaitFutures(java.util.List<? extends java.util.concurrent.Future<?>> futures) throws java.lang.InterruptedException
java.lang.InterruptedException
public static boolean invokeAll(java.util.List<? extends java.lang.Runnable> tasks, int threadCount) throws java.lang.InterruptedException
java.lang.InterruptedException