Uses of Class
java.util.concurrent.ForkJoinTask
Packages that use ForkJoinTask
-
Uses of ForkJoinTask in java.util.concurrent
Subclasses of ForkJoinTask in java.util.concurrentModifier and TypeClassDescriptionclassAForkJoinTaskwith a completion action performed when triggered and there are no remaining pending actions.classA recursive resultlessForkJoinTask.classA recursive result-bearingForkJoinTask.Methods in java.util.concurrent with type parameters of type ForkJoinTaskModifier and TypeMethodDescriptionstatic <T extends ForkJoinTask<?>>
Collection<T> ForkJoinTask.invokeAll(Collection<T> tasks) Forks all tasks in the specified collection, returning whenisDoneholds for each task or an (unchecked) exception is encountered, in which case the exception is rethrown.Methods in java.util.concurrent that return ForkJoinTaskModifier and TypeMethodDescriptionstatic ForkJoinTask<?> Returns a newForkJoinTaskthat performs therunmethod of the givenRunnableas its action, and returns a null result uponjoin().static <T> ForkJoinTask<T> Returns a newForkJoinTaskthat performs therunmethod of the givenRunnableas its action, and returns the given result uponjoin().static <T> ForkJoinTask<T> Returns a newForkJoinTaskthat performs thecallmethod of the givenCallableas its action, and returns its result uponjoin(), translating any checked exceptions encountered intoRuntimeException.static <T> ForkJoinTask<T> ForkJoinTask.adaptInterruptible(Callable<? extends T> callable) Returns a newForkJoinTaskthat performs thecallmethod of the givenCallableas its action, and returns its result uponjoin(), translating any checked exceptions encountered intoRuntimeException.<T> ForkJoinTask<T> ForkJoinPool.externalSubmit(ForkJoinTask<T> task) Submits the given task as if submitted from a non-ForkJoinTaskclient.final ForkJoinTask<V> ForkJoinTask.fork()Arranges to asynchronously execute this task in the pool the current task is running in, if applicable, or using theForkJoinPool.commonPool()if notinForkJoinPool().<T> ForkJoinTask<T> ForkJoinPool.lazySubmit(ForkJoinTask<T> task) Submits the given task without guaranteeing that it will eventually execute in the absence of available active threads.protected static ForkJoinTask<?> ForkJoinTask.peekNextLocalTask()Returns, but does not unschedule or execute, a task queued by the current thread but not yet executed, if one is immediately available.protected static ForkJoinTask<?> ForkJoinTask.pollNextLocalTask()Unschedules and returns, without executing, the next task queued by the current thread but not yet executed, if the current thread is operating in a ForkJoinPool.protected ForkJoinTask<?> ForkJoinPool.pollSubmission()Removes and returns the next unexecuted submission if one is available.protected static ForkJoinTask<?> ForkJoinTask.pollSubmission()If the current thread is operating in a ForkJoinPool, unschedules and returns, without executing, a task externally submitted to the pool, if one is available.protected static ForkJoinTask<?> ForkJoinTask.pollTask()If the current thread is operating in a ForkJoinPool, unschedules and returns, without executing, the next task queued by the current thread but not yet executed, if one is available, or if not available, a task that was forked by some other thread, if available.ForkJoinTask<?> <T> ForkJoinTask<T> <T> ForkJoinTask<T> <T> ForkJoinTask<T> ForkJoinPool.submit(ForkJoinTask<T> task) Submits a ForkJoinTask for execution.Methods in java.util.concurrent with parameters of type ForkJoinTaskModifier and TypeMethodDescriptionvoidForkJoinPool.execute(ForkJoinTask<?> task) Arranges for (asynchronous) execution of the given task.<T> ForkJoinTask<T> ForkJoinPool.externalSubmit(ForkJoinTask<T> task) Submits the given task as if submitted from a non-ForkJoinTaskclient.<T> TForkJoinPool.invoke(ForkJoinTask<T> task) Performs the given task, returning its result upon completion.static voidForkJoinTask.invokeAll(ForkJoinTask<?>... tasks) Forks the given tasks, returning whenisDoneholds for each task or an (unchecked) exception is encountered, in which case the exception is rethrown.static voidForkJoinTask.invokeAll(ForkJoinTask<?> t1, ForkJoinTask<?> t2) Forks the given tasks, returning whenisDoneholds for each task or an (unchecked) exception is encountered, in which case the exception is rethrown.<T> ForkJoinTask<T> ForkJoinPool.lazySubmit(ForkJoinTask<T> task) Submits the given task without guaranteeing that it will eventually execute in the absence of available active threads.<T> ForkJoinTask<T> ForkJoinPool.submit(ForkJoinTask<T> task) Submits a ForkJoinTask for execution.Method parameters in java.util.concurrent with type arguments of type ForkJoinTaskModifier and TypeMethodDescriptionprotected intForkJoinPool.drainTasksTo(Collection<? super ForkJoinTask<?>> c) Removes all available unexecuted submitted and forked tasks from scheduling queues and adds them to the given collection, without altering their execution status.