| Package | Description |
|---|---|
| java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| Modifier and Type | Method and Description |
|---|---|
V |
ForkJoinTask.get()
Waits if necessary for the computation to complete, and then retrieves its result.
|
T |
CompletableFuture.get()
Waits if necessary for this future to complete, and then returns its result.
|
V |
Future.get()
Waits if necessary for the computation to complete, and then retrieves its result.
|
V |
FutureTask.get()
|
V |
ForkJoinTask.get(long timeout, TimeUnit
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
|
T |
CompletableFuture.get(long timeout, TimeUnit
Waits if necessary for at most the given time for this future to complete, and then returns its result, if available.
|
V |
Future.get(long timeout, TimeUnit
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
|
V |
FutureTask.get(long timeout, TimeUnit
|
<T> T |
ExecutorService.invokeAny(Collection
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
|
<T> T |
ExecutorService.invokeAny(Collection
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
|
| Modifier and Type | Method and Description |
|---|---|
T |
SwingWorker.get()
Waits if necessary for the computation to complete, and then retrieves its result.
|
T |
SwingWorker.get(long timeout, TimeUnit
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
|