Java.Util.Concurrent.ForkJoinTask: Method Members

The methods of Java.Util.Concurrent.ForkJoinTask are listed below. For a list of all members, see the ForkJoinTask Members list.

See Also: Inherited members from Java.Lang.Object

Public Methods

static
Adapt(Java.Lang.IRunnable) : ForkJoinTask
Returns a new ForkJoinTask that performs the run method of the given Runnable as its action, and returns a null result upon ForkJoinTask.Join.
static
Adapt(ICallable) : ForkJoinTask
Documentation for this section has not yet been entered.
static
Adapt(Java.Lang.IRunnable, Java.Lang.Object) : ForkJoinTask
Documentation for this section has not yet been entered.
Cancel(bool) : bool
Attempts to cancel execution of this task.
Complete(Java.Lang.Object)
Documentation for this section has not yet been entered.
CompleteExceptionally(Java.Lang.Throwable)
Completes this task abnormally, and if not already aborted or cancelled, causes it to throw the given exception upon join and related operations.
Fork() : ForkJoinTask
Arranges to asynchronously execute this task in the pool the current task is running in, if applicable, or using the ForkJoinPool.commonPool() if not ForkJoinTask.InForkJoinPool.
Get() : Java.Lang.Object
Waits if necessary for the computation to complete, and then retrieves its result.
Get(long, TimeUnit) : Java.Lang.Object
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
static
HelpQuiesce()
Possibly executes tasks until the pool hosting the current task ForkJoinPool.IsQuiescent.
static
InForkJoinPool() : bool
Returns true if the current thread is a Java.Util.Concurrent.ForkJoinWorkerThread executing as a ForkJoinPool computation.
Invoke() : Java.Lang.Object
Commences performing this task, awaits its completion if necessary, and returns its result, or throws an (unchecked) RuntimeException or Error if the underlying computation did so.
static
InvokeAll(params ForkJoinTask[])
Documentation for this section has not yet been entered.
static
InvokeAll(ICollection) : ICollection
Documentation for this section has not yet been entered.
static
InvokeAll(ForkJoinTask, ForkJoinTask)
Documentation for this section has not yet been entered.
Join() : Java.Lang.Object
Returns the result of the computation when it ForkJoinTask.IsDone.
QuietlyInvoke()
Commences performing this task and awaits its completion if necessary, without returning its result or throwing its exception.
QuietlyJoin()
Joins this task, without returning its result or throwing its exception.
Reinitialize()
Resets the internal bookkeeping state of this task, allowing a subsequent fork.
TryUnfork() : bool
Tries to unschedule this task for execution.

Protected Methods

abstract
Exec() : bool
Immediately performs the base action of this task and returns true if, upon return from this method, this task is guaranteed to have completed normally.
static
PeekNextLocalTask() : ForkJoinTask
Returns, but does not unschedule or execute, a task queued by the current thread but not yet executed, if one is immediately available.
static
PollNextLocalTask() : ForkJoinTask
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.
static
PollTask() : ForkJoinTask
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.
abstract
SetRawResult(Java.Lang.Object)
Documentation for this section has not yet been entered.