public interface Task extends Closeable
| 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
|
void run()
void stop()
void close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2013. All Rights Reserved.