public interface CompletableExecutorService
extends java.util.concurrent.ExecutorService
| Modifier and Type | Method and Description |
|---|---|
<T> java.util.List<java.util.concurrent.Future<T>> |
invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>> tasks) |
<T> java.util.List<java.util.concurrent.Future<T>> |
invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>> tasks,
long timeout,
java.util.concurrent.TimeUnit unit) |
<T> java.util.concurrent.CompletableFuture<T> |
submit(java.util.concurrent.Callable<T> task) |
java.util.concurrent.CompletableFuture<?> |
submit(java.lang.Runnable task) |
<T> java.util.concurrent.CompletableFuture<T> |
submit(java.lang.Runnable task,
T result) |
<T> java.util.concurrent.CompletableFuture<T> submit(java.util.concurrent.Callable<T> task)
submit in interface java.util.concurrent.ExecutorServiceCompletableFuture representing pending completion of the taskRejectedExecutionExceptionjava.util.concurrent.CompletableFuture<?> submit(java.lang.Runnable task)
submit in interface java.util.concurrent.ExecutorServiceCompletableFuture representing pending completion of the taskRejectedExecutionException<T> java.util.concurrent.CompletableFuture<T> submit(java.lang.Runnable task,
T result)
submit in interface java.util.concurrent.ExecutorServiceCompletableFuture representing pending completion of the taskRejectedExecutionException<T> java.util.List<java.util.concurrent.Future<T>> invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>> tasks)
throws java.lang.InterruptedException
All elements in the returned list must be CompletableFuture instances.
invokeAll in interface java.util.concurrent.ExecutorServiceCompletableFuture instances representing the tasks, in the same
sequential order as produced by the iterator for the given task list, each of which has
completed.RejectedExecutionExceptionjava.lang.NullPointerException - if any task is nulljava.lang.InterruptedException<T> java.util.List<java.util.concurrent.Future<T>> invokeAll(java.util.Collection<? extends java.util.concurrent.Callable<T>> tasks,
long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
All elements in the returned list must be CompletableFuture instances.
invokeAll in interface java.util.concurrent.ExecutorServiceCompletableFuture instances representing the tasks, in the same
sequential order as produced by the iterator for the given task list. If the operation
did not time out, each task will have completed. If it did time out, some of these
tasks will not have completed.RejectedExecutionExceptionjava.lang.NullPointerException - if any task is nulljava.lang.InterruptedException