Modifier and Type | Method and Description |
---|---|
static <T> T |
runIfNotDoneAndGet(RunnableFuture<T> future) |
static void |
waitForAll(long timeoutMillis,
Collection<Future<?>> futures) |
static void |
waitForAll(long timeoutMillis,
Future<?>... futures) |
public static <T> T runIfNotDoneAndGet(RunnableFuture<T> future) throws ExecutionException, InterruptedException
public static void waitForAll(long timeoutMillis, Future<?>... futures) throws Exception
Exception
public static void waitForAll(long timeoutMillis, Collection<Future<?>> futures) throws Exception
Exception
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.