Package pabeles.concurrency
Class IntRangeObjectTask<T>
- All Implemented Interfaces:
Serializable
,Future<Void>
- See Also:
-
Constructor Summary
ConstructorDescriptionIntRangeObjectTask
(int step, int min, int max, int stepLength, GrowArray<T> workspace, IntRangeObjectConsumer<T> consumer) IntRangeObjectTask
(int min, int max, int stepLength, GrowArray<T> workspace, IntRangeObjectConsumer<T> 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
-
IntRangeObjectTask
public IntRangeObjectTask(int step, int min, int max, int stepLength, GrowArray<T> workspace, IntRangeObjectConsumer<T> consumer) - Parameters:
step
- which step is to be processed. the master task should have this set to -1
-
IntRangeObjectTask
public IntRangeObjectTask(int min, int max, int stepLength, GrowArray<T> workspace, IntRangeObjectConsumer<T> consumer)
-
-
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>
-