| Package | Description |
|---|---|
| java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
| Modifier and Type | Method and Description |
|---|---|
V |
FutureTask.get() |
V |
Future.get()
Waits if necessary for the computation to complete, and then
retrieves its result.
|
V |
ForkJoinTask.get()
Waits if necessary for the computation to complete, and then
retrieves its result.
|
V |
FutureTask.get(long timeout,
TimeUnit unit) |
V |
Future.get(long timeout,
TimeUnit unit)
Waits if necessary for at most the given time for the computation
to complete, and then retrieves its result, if available.
|
V |
ForkJoinTask.get(long timeout,
TimeUnit unit)
Waits if necessary for at most the given time for the computation
to complete, and then retrieves its result, if available.
|
<T> T |
ExecutorService.invokeAny(Collection<? extends Callable<T>> tasks)
Executes the given tasks, returning the result
of one that has completed successfully (i.e., without throwing
an exception), if any do.
|
<T> T |
AbstractExecutorService.invokeAny(Collection<? extends Callable<T>> tasks) |
<T> T |
ExecutorService.invokeAny(Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit)
Executes the given tasks, returning the result
of one that has completed successfully (i.e., without throwing
an exception), if any do before the given timeout elapses.
|
<T> T |
AbstractExecutorService.invokeAny(Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit) |
Copyright © 2017 API Design. All Rights Reserved.