blob: fa2709109f124673f3cb7cf35a5fb02f4feb2dfc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package org.openslx.taskmanager.api;
/**
* Implement this if you want your task to be cancellable.
* After cancel has been called, your task should try to clean up and leave
* its execute() method in a timely fashion.
* The execute() method must return false in that case (unless
* it could still do everything it was supposed to)
*/
public interface CancellableTask
{
public void cancel();
}
|