Package pabeles.concurrency
Class IntRangeObjectTask<T>
java.lang.Object
java.util.concurrent.ForkJoinTask<java.lang.Void>
pabeles.concurrency.IntRangeObjectTask<T>
- All Implemented Interfaces:
java.io.Serializable,java.util.concurrent.Future<java.lang.Void>
public class IntRangeObjectTask<T>
extends java.util.concurrent.ForkJoinTask<java.lang.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()java.lang.VoidgetRawResult()protected voidsetRawResult(java.lang.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
public java.lang.Void getRawResult()- Specified by:
getRawResultin classjava.util.concurrent.ForkJoinTask<java.lang.Void>
-
setRawResult
protected void setRawResult(java.lang.Void value)- Specified by:
setRawResultin classjava.util.concurrent.ForkJoinTask<java.lang.Void>
-
exec
protected boolean exec()- Specified by:
execin classjava.util.concurrent.ForkJoinTask<java.lang.Void>
-