Java.Util.Concurrent.ForkJoinTask Members

The members of Java.Util.Concurrent.ForkJoinTask are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
ExceptionJava.Lang.Throwable. Returns the exception thrown by the base computation, or a CancellationException if cancelled, or null if none or if the method has not yet completed.
[read-only]
IsCancelledbool. Returns true if this task was cancelled before it completed normally.
[read-only]
IsCompletedAbnormallybool. Returns true if this task threw an exception or was cancelled.
[read-only]
IsCompletedNormallybool. Returns true if this task completed without throwing an exception and was not cancelled.
[read-only]
IsDonebool. Returns true if this task completed.
[read-only]
static
PoolForkJoinPool. Returns the pool hosting the current task execution, or null if this task is executing outside of any ForkJoinPool.
[read-only]
static
QueuedTaskCountint. Returns an estimate of the number of tasks that have been forked by the current worker thread but not yet executed.
[read-only]
static
SurplusQueuedTaskCountint. Returns an estimate of how many more locally queued tasks are held by the current worker thread than there are other worker threads that might steal them, or zero if this thread is not operating in a ForkJoinPool.

Protected Properties

[read-only]
abstract
RawRawResultJava.Lang.Object. Returns the result that would be returned by ForkJoinTask.Join, even if this task completed abnormally, or null if this task is not known to have been completed.
[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

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.