A B C D E F G H I J L M N O P Q R S T 

A

adapt(Runnable) - Static method in class com.twitter.jsr166e.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().
adapt(Runnable, T) - Static method in class com.twitter.jsr166e.ForkJoinTask
Returns a new ForkJoinTask that performs the run method of the given Runnable as its action, and returns the given result upon ForkJoinTask.join().
adapt(Callable<? extends T>) - Static method in class com.twitter.jsr166e.ForkJoinTask
Returns a new ForkJoinTask that performs the call method of the given Callable as its action, and returns its result upon ForkJoinTask.join(), translating any checked exceptions encountered into RuntimeException.
add(long) - Method in class com.twitter.jsr166e.LongAdder
Adds the given value.
addToPendingCount(int) - Method in class com.twitter.jsr166e.CountedCompleter
Adds (atomically) the given value to the pending count.
awaitQuiescence(long, TimeUnit) - Method in class com.twitter.jsr166e.ForkJoinPool
If called by a ForkJoinTask operating in this pool, equivalent in effect to ForkJoinTask.helpQuiesce().
awaitTermination(long, TimeUnit) - Method in class com.twitter.jsr166e.ForkJoinPool
Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.

B

block() - Method in interface com.twitter.jsr166e.ForkJoinPool.ManagedBlocker
Possibly blocks the current thread, for example waiting for a lock or condition.

C

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
Regardless of pending count, invokes onCompletion(CountedCompleter), marks this task as complete and further triggers tryComplete() on this task's completer, if one exists.
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.

D

decrement() - Method in class com.twitter.jsr166e.LongAdder
Equivalent to add(-1).
decrementPendingCountUnlessZero() - Method in class com.twitter.jsr166e.CountedCompleter
If the pending count is nonzero, (atomically) decrements it.
defaultForkJoinWorkerThreadFactory - Static variable in class com.twitter.jsr166e.ForkJoinPool
Creates a new ForkJoinWorkerThread.
doubleValue() - Method in class com.twitter.jsr166e.LongAdder
Returns the LongAdder.sum() as a double after a widening primitive conversion.
drainTasksTo(Collection<? super ForkJoinTask<?>>) - Method in class com.twitter.jsr166e.ForkJoinPool
Removes all available unexecuted submitted and forked tasks from scheduling queues and adds them to the given collection, without altering their execution status.

E

exec() - Method in class com.twitter.jsr166e.CountedCompleter
Implements execution conventions for CountedCompleters.
exec() - Method in class com.twitter.jsr166e.ForkJoinTask
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.
execute(ForkJoinTask<?>) - Method in class com.twitter.jsr166e.ForkJoinPool
Arranges for (asynchronous) execution of the given task.
execute(Runnable) - Method in class com.twitter.jsr166e.ForkJoinPool
 

F

firstComplete() - Method in class com.twitter.jsr166e.CountedCompleter
If this task's pending count is zero, returns this task; otherwise decrements its pending count and returns null.
floatValue() - Method in class com.twitter.jsr166e.LongAdder
Returns the LongAdder.sum() as a float after a widening primitive conversion.
fork() - Method in class com.twitter.jsr166e.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().
ForkJoinPool - Class in com.twitter.jsr166e
An ExecutorService for running ForkJoinTasks.
ForkJoinPool() - Constructor for class com.twitter.jsr166e.ForkJoinPool
Creates a ForkJoinPool with parallelism equal to Runtime.availableProcessors(), using the default thread factory, no UncaughtExceptionHandler, and non-async LIFO processing mode.
ForkJoinPool(int) - Constructor for class com.twitter.jsr166e.ForkJoinPool
Creates a ForkJoinPool with the indicated parallelism level, the default thread factory, no UncaughtExceptionHandler, and non-async LIFO processing mode.
ForkJoinPool(int, ForkJoinPool.ForkJoinWorkerThreadFactory, Thread.UncaughtExceptionHandler, boolean) - Constructor for class com.twitter.jsr166e.ForkJoinPool
Creates a ForkJoinPool with the given parameters.
ForkJoinPool.ForkJoinWorkerThreadFactory - Interface in com.twitter.jsr166e
Factory for creating new ForkJoinWorkerThreads.
ForkJoinPool.ManagedBlocker - Interface in com.twitter.jsr166e
Interface for extending managed parallelism for tasks running in ForkJoinPools.
ForkJoinTask<V> - Class in com.twitter.jsr166e
Abstract base class for tasks that run within a ForkJoinPool.
ForkJoinTask() - Constructor for class com.twitter.jsr166e.ForkJoinTask
 
ForkJoinWorkerThread - Class in com.twitter.jsr166e
A thread managed by a ForkJoinPool, which executes ForkJoinTasks.
ForkJoinWorkerThread(ForkJoinPool) - Constructor for class com.twitter.jsr166e.ForkJoinWorkerThread
Creates a ForkJoinWorkerThread operating in the given pool.

G

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.

H

hasQueuedSubmissions() - Method in class com.twitter.jsr166e.ForkJoinPool
Returns true if there are any tasks submitted to this pool that have not yet begun executing.
helpQuiesce() - Static method in class com.twitter.jsr166e.ForkJoinTask
Possibly executes tasks until the pool hosting the current task is quiescent.

I

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.

J

join() - Method in class com.twitter.jsr166e.ForkJoinTask
Returns the result of the computation when it is done.

L

LongAdder - Class in com.twitter.jsr166e
One or more variables that together maintain an initially zero long sum.
LongAdder() - Constructor for class com.twitter.jsr166e.LongAdder
Creates a new adder with initial sum of zero.
longValue() - Method in class com.twitter.jsr166e.LongAdder
Equivalent to LongAdder.sum().

M

managedBlock(ForkJoinPool.ManagedBlocker) - Static method in class com.twitter.jsr166e.ForkJoinPool
Blocks in accord with the given blocker.

N

newTaskFor(Runnable, T) - Method in class com.twitter.jsr166e.ForkJoinPool
 
newTaskFor(Callable<T>) - Method in class com.twitter.jsr166e.ForkJoinPool
 
newThread(ForkJoinPool) - Method in interface com.twitter.jsr166e.ForkJoinPool.ForkJoinWorkerThreadFactory
Returns a new worker thread operating in the given pool.
next(int) - Method in class com.twitter.jsr166e.ThreadLocalRandom
 
nextComplete() - Method in class com.twitter.jsr166e.CountedCompleter
If this task does not have a completer, invokes ForkJoinTask.quietlyComplete() and returns null.
nextDouble(double) - Method in class com.twitter.jsr166e.ThreadLocalRandom
Returns a pseudorandom, uniformly distributed double value between 0 (inclusive) and the specified value (exclusive).
nextDouble(double, double) - Method in class com.twitter.jsr166e.ThreadLocalRandom
Returns a pseudorandom, uniformly distributed value between the given least value (inclusive) and bound (exclusive).
nextInt(int, int) - Method in class com.twitter.jsr166e.ThreadLocalRandom
Returns a pseudorandom, uniformly distributed value between the given least value (inclusive) and bound (exclusive).
nextLong(long) - Method in class com.twitter.jsr166e.ThreadLocalRandom
Returns a pseudorandom, uniformly distributed value between 0 (inclusive) and the specified value (exclusive).
nextLong(long, long) - Method in class com.twitter.jsr166e.ThreadLocalRandom
Returns a pseudorandom, uniformly distributed value between the given least value (inclusive) and bound (exclusive).

O

onCompletion(CountedCompleter<?>) - Method in class com.twitter.jsr166e.CountedCompleter
Performs an action when method tryComplete() is invoked and the pending count is zero, or when the unconditional method complete(T) is invoked.
onExceptionalCompletion(Throwable, CountedCompleter<?>) - Method in class com.twitter.jsr166e.CountedCompleter
Performs an action when method ForkJoinTask.completeExceptionally(Throwable) is invoked or method compute() throws an exception, and this task has not already otherwise completed normally.
onStart() - Method in class com.twitter.jsr166e.ForkJoinWorkerThread
Initializes internal state after construction but before processing any tasks.
onTermination(Throwable) - Method in class com.twitter.jsr166e.ForkJoinWorkerThread
Performs cleanup associated with termination of this worker thread.

P

peekNextLocalTask() - Static method in class com.twitter.jsr166e.ForkJoinTask
Returns, but does not unschedule or execute, a task queued by the current thread but not yet executed, if one is immediately available.
pollNextLocalTask() - Static method in class com.twitter.jsr166e.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.
pollSubmission() - Method in class com.twitter.jsr166e.ForkJoinPool
Removes and returns the next unexecuted submission if one is available.
pollTask() - Static method in class com.twitter.jsr166e.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.
propagateCompletion() - Method in class com.twitter.jsr166e.CountedCompleter
Equivalent to tryComplete() but does not invoke onCompletion(CountedCompleter) along the completion path: If the pending count is nonzero, decrements the count; otherwise, similarly tries to complete this task's completer, if one exists, else marks this task as complete.

Q

quietlyComplete() - Method in class com.twitter.jsr166e.ForkJoinTask
Completes this task normally without setting a value.
quietlyCompleteRoot() - Method in class com.twitter.jsr166e.CountedCompleter
Equivalent to getRoot().quietlyComplete().
quietlyInvoke() - Method in class com.twitter.jsr166e.ForkJoinTask
Commences performing this task and awaits its completion if necessary, without returning its result or throwing its exception.
quietlyJoin() - Method in class com.twitter.jsr166e.ForkJoinTask
Joins this task, without returning its result or throwing its exception.

R

reinitialize() - Method in class com.twitter.jsr166e.ForkJoinTask
Resets the internal bookkeeping state of this task, allowing a subsequent fork.
reset() - Method in class com.twitter.jsr166e.LongAdder
Resets variables maintaining the sum to zero.
run() - Method in class com.twitter.jsr166e.ForkJoinWorkerThread
This method is required to be public, but should never be called explicitly.

S

setForkJoinTaskTag(short) - Method in class com.twitter.jsr166e.ForkJoinTask
Atomically sets the tag value for this task.
setPendingCount(int) - Method in class com.twitter.jsr166e.CountedCompleter
Sets the pending count to the given value.
setRawResult(T) - Method in class com.twitter.jsr166e.CountedCompleter
A method that result-bearing CountedCompleters may optionally use to help maintain result data.
setRawResult(V) - Method in class com.twitter.jsr166e.ForkJoinTask
Forces the given value to be returned as a result.
setSeed(long) - Method in class com.twitter.jsr166e.ThreadLocalRandom
Throws UnsupportedOperationException.
shutdown() - Method in class com.twitter.jsr166e.ForkJoinPool
Possibly initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted.
shutdownNow() - Method in class com.twitter.jsr166e.ForkJoinPool
Possibly attempts to cancel and/or stop all tasks, and reject all subsequently submitted tasks.
submit(ForkJoinTask<T>) - Method in class com.twitter.jsr166e.ForkJoinPool
Submits a ForkJoinTask for execution.
submit(Callable<T>) - Method in class com.twitter.jsr166e.ForkJoinPool
 
submit(Runnable, T) - Method in class com.twitter.jsr166e.ForkJoinPool
 
submit(Runnable) - Method in class com.twitter.jsr166e.ForkJoinPool
 
sum() - Method in class com.twitter.jsr166e.LongAdder
Returns the current sum.
sumThenReset() - Method in class com.twitter.jsr166e.LongAdder
Equivalent in effect to LongAdder.sum() followed by LongAdder.reset().

T

ThreadLocalRandom - Class in com.twitter.jsr166e
A random number generator isolated to the current thread.
toString() - Method in class com.twitter.jsr166e.ForkJoinPool
Returns a string identifying this pool, as well as its state, including indications of run state, parallelism level, and worker and task counts.
toString() - Method in class com.twitter.jsr166e.LongAdder
Returns the String representation of the LongAdder.sum().
tryComplete() - Method in class com.twitter.jsr166e.CountedCompleter
If the pending count is nonzero, decrements the count; otherwise invokes onCompletion(CountedCompleter) and then similarly tries to complete this task's completer, if one exists, else marks this task as complete.
tryUnfork() - Method in class com.twitter.jsr166e.ForkJoinTask
Tries to unschedule this task for execution.
A B C D E F G H I J L M N O P Q R S T 

Copyright © 2016. All Rights Reserved.