Package pabeles.concurrency
Class IntRangeTask
- All Implemented Interfaces:
Serializable,Future<Void>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIntRangeTask(int step, int min, int max, int stepLength, IntRangeConsumer consumer) IntRangeTask(int min, int max, int stepLength, IntRangeConsumer consumer) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanexec()protected voidsetRawResult(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:
getRawResultin classForkJoinTask<Void>
-
setRawResult
- Specified by:
setRawResultin classForkJoinTask<Void>
-
exec
protected boolean exec()- Specified by:
execin classForkJoinTask<Void>
-