Modifier and Type | Interface and Description |
---|---|
interface |
ScheduledFuture<V>
A delayed result-bearing action that can be cancelled.
|
Modifier and Type | Method and Description |
---|---|
<T> Future<T> |
ExecutorService.submit(Callable<T> task)
Submits a value-returning task for execution and returns a Future representing the pending results of the task.
|
Future<?> |
ExecutorService.submit(java.lang.Runnable task)
Submits a Runnable task for execution and returns a Future representing that task.
|
<T> Future<T> |
ExecutorService.submit(java.lang.Runnable task,
T result)
Submits a Runnable task for execution and returns a Future representing that task.
|
Modifier and Type | Method and Description |
---|---|
<T> java.util.List<Future<T>> |
ExecutorService.invokeAll(java.util.Collection<? extends Callable<T>> tasks)
Executes the given tasks, returning a list of Futures holding their status and results when all complete.
|
<T> java.util.List<Future<T>> |
ExecutorService.invokeAll(java.util.Collection<? extends Callable<T>> tasks,
long timeout,
TimeUnit unit)
Executes the given tasks, returning a list of Futures holding their status and results when all complete or the
timeout expires, whichever happens first.
|