Package com.complexible.common.stream
Class ForEachIntTask
- All Implemented Interfaces:
Serializable,Future<Void>
A
ForkJoinTask for performing a parallel for-each operation;- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Constructor Summary
ConstructorsConstructorDescriptionForEachIntTask(Spliterator.OfInt theSpliterator, BooleanSupplier theCancellationFlag, IntConsumer theConsumer) -
Method Summary
Methods inherited from class java.util.concurrent.CountedCompleter
addToPendingCount, compareAndSetPendingCount, complete, decrementPendingCountUnlessZero, exec, firstComplete, getCompleter, getPendingCount, getRawResult, getRoot, helpComplete, nextComplete, onCompletion, onExceptionalCompletion, propagateCompletion, quietlyCompleteRoot, setPendingCount, setRawResult, tryCompleteMethods inherited from class java.util.concurrent.ForkJoinTask
adapt, adapt, adapt, adaptInterruptible, cancel, compareAndSetForkJoinTaskTag, completeExceptionally, exceptionNow, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollSubmission, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, quietlyJoin, quietlyJoinUninterruptibly, reinitialize, resultNow, setForkJoinTaskTag, state, tryUnfork
-
Constructor Details
-
ForEachIntTask
public ForEachIntTask(Spliterator.OfInt theSpliterator, BooleanSupplier theCancellationFlag, IntConsumer theConsumer)
-
-
Method Details
-
compute
public void compute()- Specified by:
computein classCountedCompleter<Void>
-