public class ParallelTask extends Object implements Task
| Constructor and Description |
|---|
ParallelTask(Task[] tasks) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Performs cleanup for given task, i.e. closes files and any other resources,
removes temporary files or database records, etc
|
void |
run()
Performs actual work associated with given task
|
void |
stop()
Interrupts current work performed by task and abort any unfinished work
|
public ParallelTask(Task[] tasks)
tasks - array of subtaskspublic void run()
Taskpublic void stop()
Taskpublic void close()
TaskCopyright © 2013. All Rights Reserved.