Uses of Class
java.util.concurrent.CountedCompleter
-
Packages that use CountedCompleter Package Description java.util.concurrent Utility classes commonly useful in concurrent programming. -
-
Uses of CountedCompleter in java.util.concurrent
Methods in java.util.concurrent that return CountedCompleter Modifier and Type Method and Description CountedCompleter<?>
CountedCompleter. firstComplete()
If this task's pending count is zero, returns this task; otherwise decrements its pending count and returnsnull
.CountedCompleter<?>
CountedCompleter. getCompleter()
Returns the completer established in this task's constructor, ornull
if none.CountedCompleter<?>
CountedCompleter. getRoot()
Returns the root of the current computation; i.e., this task if it has no completer, else its completer's root.CountedCompleter<?>
CountedCompleter. nextComplete()
If this task does not have a completer, invokesForkJoinTask.quietlyComplete()
and returnsnull
.Methods in java.util.concurrent with parameters of type CountedCompleter Modifier and Type Method and Description void
CountedCompleter. onCompletion(CountedCompleter<?> caller)
Performs an action when methodtryComplete()
is invoked and the pending count is zero, or when the unconditional methodcomplete(T)
is invoked.boolean
CountedCompleter. onExceptionalCompletion(Throwable ex, CountedCompleter<?> caller)
Performs an action when methodForkJoinTask.completeExceptionally(Throwable)
is invoked or methodcompute()
throws an exception, and this task has not already otherwise completed normally.Constructors in java.util.concurrent with parameters of type CountedCompleter Constructor and Description CountedCompleter(CountedCompleter<?> completer)
Creates a new CountedCompleter with the given completer and an initial pending count of zero.CountedCompleter(CountedCompleter<?> completer, int initialPendingCount)
Creates a new CountedCompleter with the given completer and initial pending count.
-
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.