package bluej.groupwork;
import threadchecker.OnThread;
import threadchecker.Tag;
| An interface to represent a teamwork command.
|
| @author Davin McCall
|
public interface TeamworkCommand
{
| Cancel execution of the command. This can be called from any
| thread, and should return immediately.
|
@OnThread(Tag.Any)
public void cancel();
| Complete execution of the command, and get the result.
| Command execution might not begin until this method is called.
|
@OnThread(Tag.Worker)
public TeamworkCommandResult getResult();
}
top,
use,
map,
interface TeamworkCommand
. cancel
. getResult
16 neLoCode
+ 6 LoComm