Package pabeles.concurrency
Class IntRangeTask
- All Implemented Interfaces:
Serializable
,Future<Void>
- See Also:
-
Constructor Summary
ConstructorDescriptionIntRangeTask
(int step, int min, int max, int stepLength, IntRangeConsumer consumer) IntRangeTask
(int min, int max, int stepLength, IntRangeConsumer consumer) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
exec()
protected void
setRawResult
(Void value) Methods inherited from class java.util.concurrent.ForkJoinTask
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, 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, reinitialize, setForkJoinTaskTag, tryUnfork
-
Constructor Details
-
IntRangeTask
- Parameters:
step
- which step is to be processed. the master task should have this set to -1
-
IntRangeTask
-
-
Method Details
-
getRawResult
- Specified by:
getRawResult
in classForkJoinTask<Void>
-
setRawResult
- Specified by:
setRawResult
in classForkJoinTask<Void>
-
exec
protected boolean exec()- Specified by:
exec
in classForkJoinTask<Void>
-