Class SortTask
java.lang.Object
java.util.concurrent.ForkJoinTask<Void>
java.util.concurrent.RecursiveAction
ch.hslu.exercises.sw11.ex1.n41.array.sort.SortTask
- 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
-
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
-
SortTask
public SortTask(int[] array) Erzeugt einen Array-Sortier Task.- Parameters:
array
- Interger-Array.
-
-
Method Details
-
compute
protected void compute()- Specified by:
compute
in classRecursiveAction
-