Package pabeles.concurrency
Class IntOperatorTask
- All Implemented Interfaces:
Serializable
,Future<Number>
- Direct Known Subclasses:
IntOperatorTask.Max
,IntOperatorTask.Min
,IntOperatorTask.Sum
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Constructor Summary
ModifierConstructorDescriptionprotected
IntOperatorTask
(int value, int max, Class primitiveType, IntProducerNumber consumer) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
exec()
protected abstract IntOperatorTask
newInstance
(int value, int max, Class primitiveType, IntProducerNumber consumer) protected abstract void
protected void
setRawResult
(Number 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
-
IntOperatorTask
-
-
Method Details
-
getRawResult
- Specified by:
getRawResult
in classForkJoinTask<Number>
-
setRawResult
- Specified by:
setRawResult
in classForkJoinTask<Number>
-
exec
protected boolean exec()- Specified by:
exec
in classForkJoinTask<Number>
-
newInstance
protected abstract IntOperatorTask newInstance(int value, int max, Class primitiveType, IntProducerNumber consumer) -
operator
-