- cancel(boolean) - Method in class com.twitter.jsr166e.ForkJoinTask
-
Attempts to cancel execution of this task.
- com.twitter.jsr166e - package com.twitter.jsr166e
-
- commonPool() - Static method in class com.twitter.jsr166e.ForkJoinPool
-
Returns the common pool instance.
- compareAndSetForkJoinTaskTag(short, short) - Method in class com.twitter.jsr166e.ForkJoinTask
-
Atomically conditionally sets the tag value for this task.
- compareAndSetPendingCount(int, int) - Method in class com.twitter.jsr166e.CountedCompleter
-
Sets (atomically) the pending count to the given count only if
it currently holds the given expected value.
- complete(T) - Method in class com.twitter.jsr166e.CountedCompleter
-
- complete(V) - Method in class com.twitter.jsr166e.ForkJoinTask
-
Completes this task, and if not already aborted or cancelled,
returning the given value as the result of subsequent
invocations of join
and related operations.
- completeExceptionally(Throwable) - Method in class com.twitter.jsr166e.ForkJoinTask
-
Completes this task abnormally, and if not already aborted or
cancelled, causes it to throw the given exception upon
join
and related operations.
- compute() - Method in class com.twitter.jsr166e.CountedCompleter
-
The main computation performed by this task.
- CountedCompleter<T> - Class in com.twitter.jsr166e
-
A
ForkJoinTask
with a completion action performed when
triggered and there are no remaining pending actions.
- CountedCompleter(CountedCompleter<?>, int) - Constructor for class com.twitter.jsr166e.CountedCompleter
-
Creates a new CountedCompleter with the given completer
and initial pending count.
- CountedCompleter(CountedCompleter<?>) - Constructor for class com.twitter.jsr166e.CountedCompleter
-
Creates a new CountedCompleter with the given completer
and an initial pending count of zero.
- CountedCompleter() - Constructor for class com.twitter.jsr166e.CountedCompleter
-
Creates a new CountedCompleter with no completer
and an initial pending count of zero.
- current() - Static method in class com.twitter.jsr166e.ThreadLocalRandom
-
Returns the current thread's ThreadLocalRandom
.
- get() - Method in class com.twitter.jsr166e.ForkJoinTask
-
Waits if necessary for the computation to complete, and then
retrieves its result.
- get(long, TimeUnit) - Method in class com.twitter.jsr166e.ForkJoinTask
-
Waits if necessary for at most the given time for the computation
to complete, and then retrieves its result, if available.
- getActiveThreadCount() - Method in class com.twitter.jsr166e.ForkJoinPool
-
Returns an estimate of the number of threads that are currently
stealing or executing tasks.
- getAsyncMode() - Method in class com.twitter.jsr166e.ForkJoinPool
-
Returns true
if this pool uses local first-in-first-out
scheduling mode for forked tasks that are never joined.
- getCommonPoolParallelism() - Static method in class com.twitter.jsr166e.ForkJoinPool
-
Returns the targeted parallelism level of the common pool.
- getCompleter() - Method in class com.twitter.jsr166e.CountedCompleter
-
Returns the completer established in this task's constructor,
or null
if none.
- getException() - Method in class com.twitter.jsr166e.ForkJoinTask
-
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.
- getFactory() - Method in class com.twitter.jsr166e.ForkJoinPool
-
Returns the factory used for constructing new workers.
- getForkJoinTaskTag() - Method in class com.twitter.jsr166e.ForkJoinTask
-
Returns the tag for this task.
- getParallelism() - Method in class com.twitter.jsr166e.ForkJoinPool
-
Returns the targeted parallelism level of this pool.
- getPendingCount() - Method in class com.twitter.jsr166e.CountedCompleter
-
Returns the current pending count.
- getPool() - Static method in class com.twitter.jsr166e.ForkJoinTask
-
Returns the pool hosting the current task execution, or null
if this task is executing outside of any ForkJoinPool.
- getPool() - Method in class com.twitter.jsr166e.ForkJoinWorkerThread
-
Returns the pool hosting this thread.
- getPoolIndex() - Method in class com.twitter.jsr166e.ForkJoinWorkerThread
-
Returns the unique index number of this thread in its pool.
- getPoolSize() - Method in class com.twitter.jsr166e.ForkJoinPool
-
Returns the number of worker threads that have started but not
yet terminated.
- getQueuedSubmissionCount() - Method in class com.twitter.jsr166e.ForkJoinPool
-
Returns an estimate of the number of tasks submitted to this
pool that have not yet begun executing.
- getQueuedTaskCount() - Method in class com.twitter.jsr166e.ForkJoinPool
-
Returns an estimate of the total number of tasks currently held
in queues by worker threads (but not including tasks submitted
to the pool that have not begun executing).
- getQueuedTaskCount() - Static method in class com.twitter.jsr166e.ForkJoinTask
-
Returns an estimate of the number of tasks that have been
forked by the current worker thread but not yet executed.
- getRawResult() - Method in class com.twitter.jsr166e.CountedCompleter
-
Returns the result of the computation.
- getRawResult() - Method in class com.twitter.jsr166e.ForkJoinTask
-
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.
- getRoot() - Method in class com.twitter.jsr166e.CountedCompleter
-
Returns the root of the current computation; i.e., this
task if it has no completer, else its completer's root.
- getRunningThreadCount() - Method in class com.twitter.jsr166e.ForkJoinPool
-
Returns an estimate of the number of worker threads that are
not blocked waiting to join tasks or for other managed
synchronization.
- getStealCount() - Method in class com.twitter.jsr166e.ForkJoinPool
-
Returns an estimate of the total number of tasks stolen from
one thread's work queue by another.
- getSurplusQueuedTaskCount() - Static method in class com.twitter.jsr166e.ForkJoinTask
-
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.
- getUncaughtExceptionHandler() - Method in class com.twitter.jsr166e.ForkJoinPool
-
Returns the handler for internal worker threads that terminate
due to unrecoverable errors encountered while executing tasks.
- increment() - Method in class com.twitter.jsr166e.LongAdder
-
Equivalent to add(1)
.
- inForkJoinPool() - Static method in class com.twitter.jsr166e.ForkJoinTask
-
Returns
true
if the current thread is a
ForkJoinWorkerThread
executing as a ForkJoinPool computation.
- intValue() - Method in class com.twitter.jsr166e.LongAdder
-
Returns the
LongAdder.sum()
as an
int
after a narrowing
primitive conversion.
- invoke(ForkJoinTask<T>) - Method in class com.twitter.jsr166e.ForkJoinPool
-
Performs the given task, returning its result upon completion.
- invoke() - Method in class com.twitter.jsr166e.ForkJoinTask
-
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.
- invokeAll(Collection<? extends Callable<T>>) - Method in class com.twitter.jsr166e.ForkJoinPool
-
- invokeAll(ForkJoinTask<?>, ForkJoinTask<?>) - Static method in class com.twitter.jsr166e.ForkJoinTask
-
Forks the given tasks, returning when isDone
holds for
each task or an (unchecked) exception is encountered, in which
case the exception is rethrown.
- invokeAll(ForkJoinTask<?>...) - Static method in class com.twitter.jsr166e.ForkJoinTask
-
Forks the given tasks, returning when isDone
holds for
each task or an (unchecked) exception is encountered, in which
case the exception is rethrown.
- invokeAll(Collection<T>) - Static method in class com.twitter.jsr166e.ForkJoinTask
-
Forks all tasks in the specified collection, returning when
isDone
holds for each task or an (unchecked) exception
is encountered, in which case the exception is rethrown.
- isCancelled() - Method in class com.twitter.jsr166e.ForkJoinTask
-
- isCompletedAbnormally() - Method in class com.twitter.jsr166e.ForkJoinTask
-
Returns true
if this task threw an exception or was cancelled.
- isCompletedNormally() - Method in class com.twitter.jsr166e.ForkJoinTask
-
Returns true
if this task completed without throwing an
exception and was not cancelled.
- isDone() - Method in class com.twitter.jsr166e.ForkJoinTask
-
- isQuiescent() - Method in class com.twitter.jsr166e.ForkJoinPool
-
Returns true
if all worker threads are currently idle.
- isReleasable() - Method in interface com.twitter.jsr166e.ForkJoinPool.ManagedBlocker
-
Returns true
if blocking is unnecessary.
- isShutdown() - Method in class com.twitter.jsr166e.ForkJoinPool
-
Returns true
if this pool has been shut down.
- isTerminated() - Method in class com.twitter.jsr166e.ForkJoinPool
-
Returns true
if all tasks have completed following shut down.
- isTerminating() - Method in class com.twitter.jsr166e.ForkJoinPool
-
Returns true
if the process of termination has
commenced but not yet completed.