Contents
Class ParallelRangeTask<D extends IntConsumer>
- All Implemented Interfaces:
Serializable, Future<Void>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.State -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intbooleanstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionParallelRangeTask(CountedCompleter<?> completer, Supplier<D> supplier) ParallelRangeTask(Supplier<D> supplier) -
Method Summary
Methods inherited from class CountedCompleter
addToPendingCount, compareAndSetPendingCount, complete, decrementPendingCountUnlessZero, firstComplete, getCompleter, getPendingCount, getRawResult, getRoot, helpComplete, nextComplete, onCompletion, onExceptionalCompletion, propagateCompletion, quietlyCompleteRoot, setPendingCount, tryCompleteMethods inherited from class ForkJoinTask
adapt, adapt, adapt, adaptInterruptible, adaptInterruptible, adaptInterruptible, cancel, compareAndSetForkJoinTaskTag, completeExceptionally, exceptionNow, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, quietlyComplete, quietlyInvoke, quietlyJoin, quietlyJoin, quietlyJoinUninterruptibly, resultNow, setForkJoinTaskTag, state, tryUnfork
-
Field Details
-
PARALLELISM
public static final int PARALLELISM -
TASK_COUNT
public static final int TASK_COUNT -
running
public volatile boolean running
-
-
Constructor Details
-
ParallelRangeTask
-
ParallelRangeTask
-
-
Method Details
-
reinitialize
public void reinitialize()- Overrides:
reinitializein classForkJoinTask<Void>
-
init
-
size
public int size() -
get
-
set
-
compute
public void compute()- Specified by:
computein classCountedCompleter<Void>
-