- acceptEither(CompletionStage<? extends T>, Consumer<? super T>) - Method in class java9.util.concurrent.CompletableFuture
-
- acceptEither(CompletionStage<? extends T>, Consumer<? super T>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when either this or the
other given stage complete normally, is executed with the
corresponding result as argument to the supplied action.
- acceptEitherAsync(CompletionStage<? extends T>, Consumer<? super T>) - Method in class java9.util.concurrent.CompletableFuture
-
- acceptEitherAsync(CompletionStage<? extends T>, Consumer<? super T>, Executor) - Method in class java9.util.concurrent.CompletableFuture
-
- acceptEitherAsync(CompletionStage<? extends T>, Consumer<? super T>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when either this or the
other given stage complete normally, is executed using this
stage's default asynchronous execution facility, with the
corresponding result as argument to the supplied action.
- acceptEitherAsync(CompletionStage<? extends T>, Consumer<? super T>, Executor) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when either this or the
other given stage complete normally, is executed using the
supplied executor, with the corresponding result as argument to
the supplied action.
- adapt(Runnable) - Static method in class java9.util.concurrent.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 java9.util.concurrent.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 java9.util.concurrent.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.
- addToPendingCount(int) - Method in class java9.util.concurrent.CountedCompleter
-
Adds (atomically) the given value to the pending count.
- allOf(CompletableFuture<?>...) - Static method in class java9.util.concurrent.CompletableFuture
-
Returns a new CompletableFuture that is completed when all of
the given CompletableFutures complete.
- anyOf(CompletableFuture<?>...) - Static method in class java9.util.concurrent.CompletableFuture
-
Returns a new CompletableFuture that is completed when any of
the given CompletableFutures complete, with the same result.
- applyToEither(CompletionStage<? extends T>, Function<? super T, U>) - Method in class java9.util.concurrent.CompletableFuture
-
- applyToEither(CompletionStage<? extends T>, Function<? super T, U>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when either this or the
other given stage complete normally, is executed with the
corresponding result as argument to the supplied function.
- applyToEitherAsync(CompletionStage<? extends T>, Function<? super T, U>) - Method in class java9.util.concurrent.CompletableFuture
-
- applyToEitherAsync(CompletionStage<? extends T>, Function<? super T, U>, Executor) - Method in class java9.util.concurrent.CompletableFuture
-
- applyToEitherAsync(CompletionStage<? extends T>, Function<? super T, U>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when either this or the
other given stage complete normally, is executed using this
stage's default asynchronous execution facility, with the
corresponding result as argument to the supplied function.
- applyToEitherAsync(CompletionStage<? extends T>, Function<? super T, U>, Executor) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when either this or the
other given stage complete normally, is executed using the
supplied executor, with the corresponding result as argument to
the supplied function.
- awaitQuiescence(long, TimeUnit) - Method in class java9.util.concurrent.ForkJoinPool
-
- awaitTermination(long, TimeUnit) - Method in class java9.util.concurrent.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.
- cancel(boolean) - Method in class java9.util.concurrent.CompletableFuture
-
- cancel() - Method in interface java9.util.concurrent.Flow.Subscription
-
Causes the Subscriber to (eventually) stop receiving
messages.
- cancel(boolean) - Method in class java9.util.concurrent.ForkJoinTask
-
Attempts to cancel execution of this task.
- checkFromIndexSize(int, int, int) - Static method in class java9.util.Objects
-
Checks if the sub-range from fromIndex (inclusive) to
fromIndex + size (exclusive) is within the bounds of range from
0 (inclusive) to length (exclusive).
- checkFromToIndex(int, int, int) - Static method in class java9.util.Objects
-
Checks if the sub-range from fromIndex (inclusive) to
toIndex (exclusive) is within the bounds of range from 0
(inclusive) to length (exclusive).
- checkIndex(int, int) - Static method in class java9.util.Objects
-
Checks if the index is within the bounds of the range from
0 (inclusive) to length (exclusive).
- close() - Method in class java9.util.concurrent.SubmissionPublisher
-
Unless already closed, issues
onComplete signals to current
subscribers, and disallows subsequent attempts to publish.
- closeExceptionally(Throwable) - Method in class java9.util.concurrent.SubmissionPublisher
-
Unless already closed, issues
onError signals to current
subscribers with the given error, and disallows subsequent
attempts to publish.
- commonPool() - Static method in class java9.util.concurrent.ForkJoinPool
-
Returns the common pool instance.
- compareAndSetForkJoinTaskTag(short, short) - Method in class java9.util.concurrent.ForkJoinTask
-
Atomically conditionally sets the tag value for this task.
- compareAndSetPendingCount(int, int) - Method in class java9.util.concurrent.CountedCompleter
-
Sets (atomically) the pending count to the given count only if
it currently holds the given expected value.
- CompletableFuture<T> - Class in java9.util.concurrent
-
A
Future that may be explicitly completed (setting its
value and status), and may be used as a
CompletionStage,
supporting dependent functions and actions that trigger upon its
completion.
- CompletableFuture() - Constructor for class java9.util.concurrent.CompletableFuture
-
Creates a new incomplete CompletableFuture.
- CompletableFuture.AsynchronousCompletionTask - Interface in java9.util.concurrent
-
A marker interface identifying asynchronous tasks produced by
async methods.
- complete(T) - Method in class java9.util.concurrent.CompletableFuture
-
If not already completed, sets the value returned by
CompletableFuture.get() and related methods to the given value.
- complete(T) - Method in class java9.util.concurrent.CountedCompleter
-
- complete(V) - Method in class java9.util.concurrent.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.
- completeAsync(Supplier<? extends T>, Executor) - Method in class java9.util.concurrent.CompletableFuture
-
Completes this CompletableFuture with the result of
the given Supplier function invoked from an asynchronous
task using the given executor.
- completeAsync(Supplier<? extends T>) - Method in class java9.util.concurrent.CompletableFuture
-
Completes this CompletableFuture with the result of the given
Supplier function invoked from an asynchronous task using the
default executor.
- completedFuture(U) - Static method in class java9.util.concurrent.CompletableFuture
-
Returns a new CompletableFuture that is already completed with
the given value.
- completedStage(U) - Static method in class java9.util.concurrent.CompletableFuture
-
Returns a new CompletionStage that is already completed with
the given value and supports only those methods in
interface
CompletionStage.
- completeExceptionally(Throwable) - Method in class java9.util.concurrent.CompletableFuture
-
If not already completed, causes invocations of
CompletableFuture.get()
and related methods to throw the given exception.
- completeExceptionally(Throwable) - Method in class java9.util.concurrent.ForkJoinTask
-
Completes this task abnormally, and if not already aborted or
cancelled, causes it to throw the given exception upon
join and related operations.
- completeOnTimeout(T, long, TimeUnit) - Method in class java9.util.concurrent.CompletableFuture
-
Completes this CompletableFuture with the given value if not
otherwise completed before the given timeout.
- CompletionStage<T> - Interface in java9.util.concurrent
-
A stage of a possibly asynchronous computation, that performs an
action or computes a value when another CompletionStage completes.
- compute() - Method in class java9.util.concurrent.CountedCompleter
-
The main computation performed by this task.
- consume(Consumer<? super T>) - Method in class java9.util.concurrent.SubmissionPublisher
-
Processes all published items using the given Consumer function.
- copy() - Method in class java9.util.concurrent.CompletableFuture
-
Returns a new CompletableFuture that is completed normally with
the same value as this CompletableFuture when it completes
normally.
- copyOf(Collection<? extends E>) - Static method in class java9.util.Lists
-
Returns an
unmodifiable List containing the elements of
the given Collection, in its iteration order.
- copyOf(Map<? extends K, ? extends V>) - Static method in class java9.util.Maps
-
- copyOf(Collection<? extends E>) - Static method in class java9.util.Sets
-
- CountedCompleter<T> - Class in java9.util.concurrent
-
A
ForkJoinTask with a completion action performed when
triggered and there are no remaining pending actions.
- CountedCompleter(CountedCompleter<?>, int) - Constructor for class java9.util.concurrent.CountedCompleter
-
Creates a new CountedCompleter with the given completer
and initial pending count.
- CountedCompleter(CountedCompleter<?>) - Constructor for class java9.util.concurrent.CountedCompleter
-
Creates a new CountedCompleter with the given completer
and an initial pending count of zero.
- CountedCompleter() - Constructor for class java9.util.concurrent.CountedCompleter
-
Creates a new CountedCompleter with no completer
and an initial pending count of zero.
- entry(K, V) - Static method in class java9.util.Maps
-
Returns an unmodifiable
Map.Entry containing the given key and value.
- estimateMaximumLag() - Method in class java9.util.concurrent.SubmissionPublisher
-
Returns an estimate of the maximum number of items produced but
not yet consumed among all current subscribers.
- estimateMinimumDemand() - Method in class java9.util.concurrent.SubmissionPublisher
-
Returns an estimate of the minimum number of items requested
(via
request) but not
yet produced, among all current subscribers.
- exceptionally(Function<Throwable, ? extends T>) - Method in class java9.util.concurrent.CompletableFuture
-
- exceptionally(Function<Throwable, ? extends T>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is executed with this stage's exception as the
argument to the supplied function.
- exceptionallyAsync(Function<Throwable, ? extends T>) - Method in class java9.util.concurrent.CompletableFuture
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is executed with this stage's exception as the
argument to the supplied function, using this stage's default
asynchronous execution facility.
- exceptionallyAsync(Function<Throwable, ? extends T>, Executor) - Method in class java9.util.concurrent.CompletableFuture
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is executed with this stage's exception as the
argument to the supplied function, using the supplied
Executor.
- exceptionallyAsync(Function<Throwable, ? extends T>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is executed with this stage's exception as the
argument to the supplied function, using this stage's default
asynchronous execution facility.
- exceptionallyAsync(Function<Throwable, ? extends T>, Executor) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is executed with this stage's exception as the
argument to the supplied function, using the supplied Executor.
- exceptionallyCompose(Function<Throwable, ? extends CompletionStage<T>>) - Method in class java9.util.concurrent.CompletableFuture
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is composed using the results of the supplied
function applied to this stage's exception.
- exceptionallyCompose(Function<Throwable, ? extends CompletionStage<T>>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is composed using the results of the supplied
function applied to this stage's exception.
- exceptionallyComposeAsync(Function<Throwable, ? extends CompletionStage<T>>) - Method in class java9.util.concurrent.CompletableFuture
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is composed using the results of the supplied
function applied to this stage's exception, using this
stage's default asynchronous execution facility.
- exceptionallyComposeAsync(Function<Throwable, ? extends CompletionStage<T>>, Executor) - Method in class java9.util.concurrent.CompletableFuture
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is composed using the results of the supplied
function applied to this stage's exception, using the
supplied Executor.
- exceptionallyComposeAsync(Function<Throwable, ? extends CompletionStage<T>>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is composed using the results of the supplied
function applied to this stage's exception, using this stage's
default asynchronous execution facility.
- exceptionallyComposeAsync(Function<Throwable, ? extends CompletionStage<T>>, Executor) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is composed using the results of the supplied
function applied to this stage's exception, using the
supplied Executor.
- exec() - Method in class java9.util.concurrent.CountedCompleter
-
Implements execution conventions for CountedCompleters.
- exec() - Method in class java9.util.concurrent.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.
- execute(ForkJoinTask<?>) - Method in class java9.util.concurrent.ForkJoinPool
-
Arranges for (asynchronous) execution of the given task.
- execute(Runnable) - Method in class java9.util.concurrent.ForkJoinPool
-
- get() - Method in class java9.util.concurrent.CompletableFuture
-
Waits if necessary for this future to complete, and then
returns its result.
- get(long, TimeUnit) - Method in class java9.util.concurrent.CompletableFuture
-
Waits if necessary for at most the given time for this future
to complete, and then returns its result, if available.
- get() - Method in class java9.util.concurrent.ForkJoinTask
-
Waits if necessary for the computation to complete, and then
retrieves its result.
- get(long, TimeUnit) - Method in class java9.util.concurrent.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 java9.util.concurrent.ForkJoinPool
-
Returns an estimate of the number of threads that are currently
stealing or executing tasks.
- getAsyncMode() - Method in class java9.util.concurrent.ForkJoinPool
-
Returns true if this pool uses local first-in-first-out
scheduling mode for forked tasks that are never joined.
- getClosedException() - Method in class java9.util.concurrent.SubmissionPublisher
-
Returns the exception associated with
closeExceptionally, or null if
not closed or if closed normally.
- getCommonPoolParallelism() - Static method in class java9.util.concurrent.ForkJoinPool
-
Returns the targeted parallelism level of the common pool.
- getCompleter() - Method in class java9.util.concurrent.CountedCompleter
-
Returns the completer established in this task's constructor,
or null if none.
- getException() - Method in class java9.util.concurrent.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.
- getExecutor() - Method in class java9.util.concurrent.SubmissionPublisher
-
Returns the Executor used for asynchronous delivery.
- getFactory() - Method in class java9.util.concurrent.ForkJoinPool
-
Returns the factory used for constructing new workers.
- getForkJoinTaskTag() - Method in class java9.util.concurrent.ForkJoinTask
-
Returns the tag for this task.
- getMaxBufferCapacity() - Method in class java9.util.concurrent.SubmissionPublisher
-
Returns the maximum per-subscriber buffer capacity.
- getNow(T) - Method in class java9.util.concurrent.CompletableFuture
-
Returns the result value (or throws any encountered exception)
if completed, else returns the given valueIfAbsent.
- getNumberOfDependents() - Method in class java9.util.concurrent.CompletableFuture
-
Returns the estimated number of CompletableFutures whose
completions are awaiting completion of this CompletableFuture.
- getNumberOfSubscribers() - Method in class java9.util.concurrent.SubmissionPublisher
-
Returns the number of current subscribers.
- getParallelism() - Method in class java9.util.concurrent.ForkJoinPool
-
Returns the targeted parallelism level of this pool.
- getPendingCount() - Method in class java9.util.concurrent.CountedCompleter
-
Returns the current pending count.
- getPool() - Static method in class java9.util.concurrent.ForkJoinTask
-
Returns the pool hosting the current thread, or null
if the current thread is executing outside of any ForkJoinPool.
- getPool() - Method in class java9.util.concurrent.ForkJoinWorkerThread
-
Returns the pool hosting this thread.
- getPoolIndex() - Method in class java9.util.concurrent.ForkJoinWorkerThread
-
Returns the unique index number of this thread in its pool.
- getPoolSize() - Method in class java9.util.concurrent.ForkJoinPool
-
Returns the number of worker threads that have started but not
yet terminated.
- getQueuedSubmissionCount() - Method in class java9.util.concurrent.ForkJoinPool
-
Returns an estimate of the number of tasks submitted to this
pool that have not yet begun executing.
- getQueuedTaskCount() - Method in class java9.util.concurrent.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 java9.util.concurrent.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 java9.util.concurrent.CountedCompleter
-
Returns the result of the computation.
- getRawResult() - Method in class java9.util.concurrent.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 java9.util.concurrent.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 java9.util.concurrent.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 java9.util.concurrent.ForkJoinPool
-
Returns an estimate of the total number of completed tasks that
were executed by a thread other than their submitter.
- getSubscribers() - Method in class java9.util.concurrent.SubmissionPublisher
-
Returns a list of current subscribers for monitoring and
tracking purposes, not for invoking
Flow.Subscriber
methods on the subscribers.
- getSurplusQueuedTaskCount() - Static method in class java9.util.concurrent.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 java9.util.concurrent.ForkJoinPool
-
Returns the handler for internal worker threads that terminate
due to unrecoverable errors encountered while executing tasks.
- inForkJoinPool() - Static method in class java9.util.concurrent.ForkJoinTask
-
Returns
true if the current thread is a
ForkJoinWorkerThread executing as a ForkJoinPool computation.
- invoke(ForkJoinTask<T>) - Method in class java9.util.concurrent.ForkJoinPool
-
Performs the given task, returning its result upon completion.
- invoke() - Method in class java9.util.concurrent.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 java9.util.concurrent.ForkJoinPool
-
- invokeAll(ForkJoinTask<?>, ForkJoinTask<?>) - Static method in class java9.util.concurrent.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 java9.util.concurrent.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 java9.util.concurrent.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 java9.util.concurrent.CompletableFuture
-
Returns true if this CompletableFuture was cancelled
before it completed normally.
- isCancelled() - Method in class java9.util.concurrent.ForkJoinTask
-
- isClosed() - Method in class java9.util.concurrent.SubmissionPublisher
-
Returns true if this publisher is not accepting submissions.
- isCompletedAbnormally() - Method in class java9.util.concurrent.ForkJoinTask
-
Returns true if this task threw an exception or was cancelled.
- isCompletedExceptionally() - Method in class java9.util.concurrent.CompletableFuture
-
Returns true if this CompletableFuture completed
exceptionally, in any way.
- isCompletedNormally() - Method in class java9.util.concurrent.ForkJoinTask
-
Returns true if this task completed without throwing an
exception and was not cancelled.
- isDone() - Method in class java9.util.concurrent.CompletableFuture
-
Returns true if completed in any fashion: normally,
exceptionally, or via cancellation.
- isDone() - Method in class java9.util.concurrent.ForkJoinTask
-
- isQuiescent() - Method in class java9.util.concurrent.ForkJoinPool
-
Returns true if all worker threads are currently idle.
- isReleasable() - Method in interface java9.util.concurrent.ForkJoinPool.ManagedBlocker
-
Returns true if blocking is unnecessary.
- isShutdown() - Method in class java9.util.concurrent.ForkJoinPool
-
Returns true if this pool has been shut down.
- isSubscribed(Flow.Subscriber<? super T>) - Method in class java9.util.concurrent.SubmissionPublisher
-
Returns true if the given Subscriber is currently subscribed.
- isTerminated() - Method in class java9.util.concurrent.ForkJoinPool
-
Returns true if all tasks have completed following shut down.
- isTerminating() - Method in class java9.util.concurrent.ForkJoinPool
-
Returns true if the process of termination has
commenced but not yet completed.
- Objects - Class in java9.util
-
This class consists of static utility methods for operating on
objects, or checking certain conditions before operation.
- obtrudeException(Throwable) - Method in class java9.util.concurrent.CompletableFuture
-
Forcibly causes subsequent invocations of method
CompletableFuture.get()
and related methods to throw the given exception, whether or
not already completed.
- obtrudeValue(T) - Method in class java9.util.concurrent.CompletableFuture
-
Forcibly sets or resets the value subsequently returned by
method
CompletableFuture.get() and related methods, whether or not
already completed.
- of() - Static method in class java9.util.Lists
-
Returns an unmodifiable list containing zero elements.
- of(E) - Static method in class java9.util.Lists
-
Returns an unmodifiable list containing one element.
- of(E, E) - Static method in class java9.util.Lists
-
Returns an unmodifiable list containing two elements.
- of(E, E, E) - Static method in class java9.util.Lists
-
Returns an unmodifiable list containing three elements.
- of(E, E, E, E) - Static method in class java9.util.Lists
-
Returns an unmodifiable list containing four elements.
- of(E, E, E, E, E) - Static method in class java9.util.Lists
-
Returns an unmodifiable list containing five elements.
- of(E, E, E, E, E, E) - Static method in class java9.util.Lists
-
Returns an unmodifiable list containing six elements.
- of(E, E, E, E, E, E, E) - Static method in class java9.util.Lists
-
Returns an unmodifiable list containing seven elements.
- of(E, E, E, E, E, E, E, E) - Static method in class java9.util.Lists
-
Returns an unmodifiable list containing eight elements.
- of(E, E, E, E, E, E, E, E, E) - Static method in class java9.util.Lists
-
Returns an unmodifiable list containing nine elements.
- of(E, E, E, E, E, E, E, E, E, E) - Static method in class java9.util.Lists
-
Returns an unmodifiable list containing ten elements.
- of(E...) - Static method in class java9.util.Lists
-
Returns an unmodifiable list containing an arbitrary number of elements.
- of() - Static method in class java9.util.Maps
-
Returns an unmodifiable map containing zero mappings.
- of(K, V) - Static method in class java9.util.Maps
-
Returns an unmodifiable map containing a single mapping.
- of(K, V, K, V) - Static method in class java9.util.Maps
-
Returns an unmodifiable map containing two mappings.
- of(K, V, K, V, K, V) - Static method in class java9.util.Maps
-
Returns an unmodifiable map containing three mappings.
- of(K, V, K, V, K, V, K, V) - Static method in class java9.util.Maps
-
Returns an unmodifiable map containing four mappings.
- of(K, V, K, V, K, V, K, V, K, V) - Static method in class java9.util.Maps
-
Returns an unmodifiable map containing five mappings.
- of(K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class java9.util.Maps
-
Returns an unmodifiable map containing six mappings.
- of(K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class java9.util.Maps
-
Returns an unmodifiable map containing seven mappings.
- of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class java9.util.Maps
-
Returns an unmodifiable map containing eight mappings.
- of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class java9.util.Maps
-
Returns an unmodifiable map containing nine mappings.
- of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class java9.util.Maps
-
Returns an unmodifiable map containing ten mappings.
- of() - Static method in class java9.util.Sets
-
Returns an unmodifiable set containing zero elements.
- of(E) - Static method in class java9.util.Sets
-
Returns an unmodifiable set containing one element.
- of(E, E) - Static method in class java9.util.Sets
-
Returns an unmodifiable set containing two elements.
- of(E, E, E) - Static method in class java9.util.Sets
-
Returns an unmodifiable set containing three elements.
- of(E, E, E, E) - Static method in class java9.util.Sets
-
Returns an unmodifiable set containing four elements.
- of(E, E, E, E, E) - Static method in class java9.util.Sets
-
Returns an unmodifiable set containing five elements.
- of(E, E, E, E, E, E) - Static method in class java9.util.Sets
-
Returns an unmodifiable set containing six elements.
- of(E, E, E, E, E, E, E) - Static method in class java9.util.Sets
-
Returns an unmodifiable set containing seven elements.
- of(E, E, E, E, E, E, E, E) - Static method in class java9.util.Sets
-
Returns an unmodifiable set containing eight elements.
- of(E, E, E, E, E, E, E, E, E) - Static method in class java9.util.Sets
-
Returns an unmodifiable set containing nine elements.
- of(E, E, E, E, E, E, E, E, E, E) - Static method in class java9.util.Sets
-
Returns an unmodifiable set containing ten elements.
- of(E...) - Static method in class java9.util.Sets
-
Returns an unmodifiable set containing an arbitrary number of elements.
- ofEntries(Map.Entry<? extends K, ? extends V>...) - Static method in class java9.util.Maps
-
Returns an unmodifiable map containing keys and values extracted from the given entries.
- offer(T, BiPredicate<Flow.Subscriber<? super T>, ? super T>) - Method in class java9.util.concurrent.SubmissionPublisher
-
Publishes the given item, if possible, to each current subscriber
by asynchronously invoking its
onNext method.
- offer(T, long, TimeUnit, BiPredicate<Flow.Subscriber<? super T>, ? super T>) - Method in class java9.util.concurrent.SubmissionPublisher
-
Publishes the given item, if possible, to each current subscriber
by asynchronously invoking its
onNext method, blocking while
resources for any subscription are unavailable, up to the
specified timeout or until the caller thread is interrupted, at
which point the given handler (if non-null) is invoked, and if it
returns true, retried once.
- onComplete() - Method in interface java9.util.concurrent.Flow.Subscriber
-
Method invoked when it is known that no additional
Subscriber method invocations will occur for a Subscription
that is not already terminated by error, after which no
other Subscriber methods are invoked by the Subscription.
- onCompletion(CountedCompleter<?>) - Method in class java9.util.concurrent.CountedCompleter
-
- onError(Throwable) - Method in interface java9.util.concurrent.Flow.Subscriber
-
Method invoked upon an unrecoverable error encountered by a
Publisher or Subscription, after which no other Subscriber
methods are invoked by the Subscription.
- onExceptionalCompletion(Throwable, CountedCompleter<?>) - Method in class java9.util.concurrent.CountedCompleter
-
- onNext(T) - Method in interface java9.util.concurrent.Flow.Subscriber
-
Method invoked with a Subscription's next item.
- onStart() - Method in class java9.util.concurrent.ForkJoinWorkerThread
-
Initializes internal state after construction but before
processing any tasks.
- onSubscribe(Flow.Subscription) - Method in interface java9.util.concurrent.Flow.Subscriber
-
Method invoked prior to invoking any other Subscriber
methods for the given Subscription.
- onTermination(Throwable) - Method in class java9.util.concurrent.ForkJoinWorkerThread
-
Performs cleanup associated with termination of this worker
thread.
- orTimeout(long, TimeUnit) - Method in class java9.util.concurrent.CompletableFuture
-
Exceptionally completes this CompletableFuture with
a
TimeoutException if not otherwise completed
before the given timeout.
- peekNextLocalTask() - Static method in class java9.util.concurrent.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 java9.util.concurrent.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 java9.util.concurrent.ForkJoinPool
-
Removes and returns the next unexecuted submission if one is
available.
- pollSubmission() - Static method in class java9.util.concurrent.ForkJoinTask
-
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.
- pollTask() - Static method in class java9.util.concurrent.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 java9.util.concurrent.CountedCompleter
-
- reinitialize() - Method in class java9.util.concurrent.ForkJoinTask
-
Resets the internal bookkeeping state of this task, allowing a
subsequent fork.
- request(long) - Method in interface java9.util.concurrent.Flow.Subscription
-
Adds the given number n of items to the current
unfulfilled demand for this subscription.
- requireNonNullElse(T, T) - Static method in class java9.util.Objects
-
Returns the first argument if it is non-null and otherwise
returns the non-null second argument.
- requireNonNullElseGet(T, Supplier<? extends T>) - Static method in class java9.util.Objects
-
Returns the first argument if it is non-null and otherwise
returns the non-null value of supplier.get().
- run() - Method in class java9.util.concurrent.ForkJoinWorkerThread
-
This method is required to be public, but should never be
called explicitly.
- runAfterBoth(CompletionStage<?>, Runnable) - Method in class java9.util.concurrent.CompletableFuture
-
- runAfterBoth(CompletionStage<?>, Runnable) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this and the other
given stage both complete normally, executes the given action.
- runAfterBothAsync(CompletionStage<?>, Runnable) - Method in class java9.util.concurrent.CompletableFuture
-
- runAfterBothAsync(CompletionStage<?>, Runnable, Executor) - Method in class java9.util.concurrent.CompletableFuture
-
- runAfterBothAsync(CompletionStage<?>, Runnable) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this and the other
given stage both complete normally, executes the given action
using this stage's default asynchronous execution facility.
- runAfterBothAsync(CompletionStage<?>, Runnable, Executor) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this and the other
given stage both complete normally, executes the given action
using the supplied executor.
- runAfterEither(CompletionStage<?>, Runnable) - Method in class java9.util.concurrent.CompletableFuture
-
- runAfterEither(CompletionStage<?>, Runnable) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when either this or the
other given stage complete normally, executes the given action.
- runAfterEitherAsync(CompletionStage<?>, Runnable) - Method in class java9.util.concurrent.CompletableFuture
-
- runAfterEitherAsync(CompletionStage<?>, Runnable, Executor) - Method in class java9.util.concurrent.CompletableFuture
-
- runAfterEitherAsync(CompletionStage<?>, Runnable) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when either this or the
other given stage complete normally, executes the given action
using this stage's default asynchronous execution facility.
- runAfterEitherAsync(CompletionStage<?>, Runnable, Executor) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when either this or the
other given stage complete normally, executes the given action
using the supplied executor.
- runAsync(Runnable) - Static method in class java9.util.concurrent.CompletableFuture
-
Returns a new CompletableFuture that is asynchronously completed
by a task running in the
ForkJoinPool.commonPool() after
it runs the given action.
- runAsync(Runnable, Executor) - Static method in class java9.util.concurrent.CompletableFuture
-
Returns a new CompletableFuture that is asynchronously completed
by a task running in the given executor after it runs the given
action.
- thenAccept(Consumer<? super T>) - Method in class java9.util.concurrent.CompletableFuture
-
- thenAccept(Consumer<? super T>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
normally, is executed with this stage's result as the argument
to the supplied action.
- thenAcceptAsync(Consumer<? super T>) - Method in class java9.util.concurrent.CompletableFuture
-
- thenAcceptAsync(Consumer<? super T>, Executor) - Method in class java9.util.concurrent.CompletableFuture
-
- thenAcceptAsync(Consumer<? super T>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
normally, is executed using this stage's default asynchronous
execution facility, with this stage's result as the argument to
the supplied action.
- thenAcceptAsync(Consumer<? super T>, Executor) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
normally, is executed using the supplied Executor, with this
stage's result as the argument to the supplied action.
- thenAcceptBoth(CompletionStage<? extends U>, BiConsumer<? super T, ? super U>) - Method in class java9.util.concurrent.CompletableFuture
-
- thenAcceptBoth(CompletionStage<? extends U>, BiConsumer<? super T, ? super U>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this and the other
given stage both complete normally, is executed with the two
results as arguments to the supplied action.
- thenAcceptBothAsync(CompletionStage<? extends U>, BiConsumer<? super T, ? super U>) - Method in class java9.util.concurrent.CompletableFuture
-
- thenAcceptBothAsync(CompletionStage<? extends U>, BiConsumer<? super T, ? super U>, Executor) - Method in class java9.util.concurrent.CompletableFuture
-
- thenAcceptBothAsync(CompletionStage<? extends U>, BiConsumer<? super T, ? super U>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this and the other
given stage both complete normally, is executed using this
stage's default asynchronous execution facility, with the two
results as arguments to the supplied action.
- thenAcceptBothAsync(CompletionStage<? extends U>, BiConsumer<? super T, ? super U>, Executor) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this and the other
given stage both complete normally, is executed using the
supplied executor, with the two results as arguments to the
supplied action.
- thenApply(Function<? super T, ? extends U>) - Method in class java9.util.concurrent.CompletableFuture
-
- thenApply(Function<? super T, ? extends U>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
normally, is executed with this stage's result as the argument
to the supplied function.
- thenApplyAsync(Function<? super T, ? extends U>) - Method in class java9.util.concurrent.CompletableFuture
-
- thenApplyAsync(Function<? super T, ? extends U>, Executor) - Method in class java9.util.concurrent.CompletableFuture
-
- thenApplyAsync(Function<? super T, ? extends U>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
normally, is executed using this stage's default asynchronous
execution facility, with this stage's result as the argument to
the supplied function.
- thenApplyAsync(Function<? super T, ? extends U>, Executor) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
normally, is executed using the supplied Executor, with this
stage's result as the argument to the supplied function.
- thenCombine(CompletionStage<? extends U>, BiFunction<? super T, ? super U, ? extends V>) - Method in class java9.util.concurrent.CompletableFuture
-
- thenCombine(CompletionStage<? extends U>, BiFunction<? super T, ? super U, ? extends V>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this and the other
given stage both complete normally, is executed with the two
results as arguments to the supplied function.
- thenCombineAsync(CompletionStage<? extends U>, BiFunction<? super T, ? super U, ? extends V>) - Method in class java9.util.concurrent.CompletableFuture
-
- thenCombineAsync(CompletionStage<? extends U>, BiFunction<? super T, ? super U, ? extends V>, Executor) - Method in class java9.util.concurrent.CompletableFuture
-
- thenCombineAsync(CompletionStage<? extends U>, BiFunction<? super T, ? super U, ? extends V>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this and the other
given stage both complete normally, is executed using this
stage's default asynchronous execution facility, with the two
results as arguments to the supplied function.
- thenCombineAsync(CompletionStage<? extends U>, BiFunction<? super T, ? super U, ? extends V>, Executor) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this and the other
given stage both complete normally, is executed using the
supplied executor, with the two results as arguments to the
supplied function.
- thenCompose(Function<? super T, ? extends CompletionStage<U>>) - Method in class java9.util.concurrent.CompletableFuture
-
- thenCompose(Function<? super T, ? extends CompletionStage<U>>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that is completed with the same
value as the CompletionStage returned by the given function.
- thenComposeAsync(Function<? super T, ? extends CompletionStage<U>>) - Method in class java9.util.concurrent.CompletableFuture
-
- thenComposeAsync(Function<? super T, ? extends CompletionStage<U>>, Executor) - Method in class java9.util.concurrent.CompletableFuture
-
- thenComposeAsync(Function<? super T, ? extends CompletionStage<U>>) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that is completed with the same
value as the CompletionStage returned by the given function,
executed using this stage's default asynchronous execution
facility.
- thenComposeAsync(Function<? super T, ? extends CompletionStage<U>>, Executor) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that is completed with the same
value as the CompletionStage returned by the given function,
executed using the supplied Executor.
- thenRun(Runnable) - Method in class java9.util.concurrent.CompletableFuture
-
- thenRun(Runnable) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
normally, executes the given action.
- thenRunAsync(Runnable) - Method in class java9.util.concurrent.CompletableFuture
-
- thenRunAsync(Runnable, Executor) - Method in class java9.util.concurrent.CompletableFuture
-
- thenRunAsync(Runnable) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
normally, executes the given action using this stage's default
asynchronous execution facility.
- thenRunAsync(Runnable, Executor) - Method in interface java9.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
normally, executes the given action using the supplied Executor.
- toCompletableFuture() - Method in class java9.util.concurrent.CompletableFuture
-
Returns this CompletableFuture.
- toCompletableFuture() - Method in interface java9.util.concurrent.CompletionStage
-
Returns a
CompletableFuture maintaining the same
completion properties as this stage.
- toString() - Method in class java9.util.concurrent.CompletableFuture
-
Returns a string identifying this CompletableFuture, as well as
its completion state.
- toString() - Method in class java9.util.concurrent.ForkJoinPool
-
Returns a string identifying this pool, as well as its state,
including indications of run state, parallelism level, and
worker and task counts.
- tryComplete() - Method in class java9.util.concurrent.CountedCompleter
-
- tryUnfork() - Method in class java9.util.concurrent.ForkJoinTask
-
Tries to unschedule this task for execution.