Class MergesortTask
java.lang.Object
java.util.concurrent.ForkJoinTask<Void>
java.util.concurrent.RecursiveAction
ch.hslu.exercises.sw11.ex1.mergesort.MergesortTask
- All Implemented Interfaces:
Serializable
,Future<Void>
Codebeispiel zu RecursiveAction für die Sortierung eines int-Arrays.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Constructor Summary
ConstructorDescriptionMergesortTask
(int[] array) Erzeugt einen Array-Sortier Task.MergesortTask
(int[] array, int threshold) -
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
-
MergesortTask
public MergesortTask(int[] array) Erzeugt einen Array-Sortier Task.- Parameters:
array
- Interger-Array.
-
MergesortTask
public MergesortTask(int[] array, int threshold)
-
-
Method Details
-
compute
protected void compute()- Specified by:
compute
in classRecursiveAction
-