Class RandomInitTask
java.lang.Object
java.util.concurrent.ForkJoinTask<Void>
java.util.concurrent.RecursiveAction
ch.hslu.exercises.sw11.ex1.n41.array.init.RandomInitTask
- All Implemented Interfaces:
Serializable
,Future<Void>
Codebeispiel zu RecursiveAction für die Initialisierung eines int-Arrays.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Constructor Summary
ConstructorDescriptionRandomInitTask
(int[] array, int rndBound) Erzeugt einen Teil-Array-Init Task. -
Method Summary
Methods inherited from class java.util.concurrent.RecursiveAction
exec, getRawResult, setRawResult
Methods inherited from class java.util.concurrent.ForkJoinTask
adapt, adapt, adapt, adaptInterruptible, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, exceptionNow, 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, quietlyJoin, quietlyJoinUninterruptibly, reinitialize, resultNow, setForkJoinTaskTag, state, tryUnfork
-
Constructor Details
-
RandomInitTask
public RandomInitTask(int[] array, int rndBound) Erzeugt einen Teil-Array-Init Task.- Parameters:
array
- Interger-Array.rndBound
- maximaler Random-Wert-1.
-
-
Method Details
-
compute
protected void compute()- Specified by:
compute
in classRecursiveAction
-