Package pabeles.concurrency
Class IntRangeObjectTask<T>
- All Implemented Interfaces:
Serializable,Future<Void>
public class IntRangeObjectTask<T> extends ForkJoinTask<Void>
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description IntRangeObjectTask(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 Type Method Description protected booleanexec()VoidgetRawResult()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
-
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:
getRawResultin classForkJoinTask<Void>
-
setRawResult
- Specified by:
setRawResultin classForkJoinTask<Void>
-
exec
protected boolean exec()- Specified by:
execin classForkJoinTask<Void>
-