com.sun.jdmk
Interface Task


public interface Task
extends java.lang.Runnable

This interface is implemented by objects that can be executed by a TaskServer.

See Also:

Method Summary
 void cancel()
          Cancel the submitted task.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

cancel

public void cancel()
Cancel the submitted task. The implementation of this method is Task-implementation dependant. It could involve some message logging, or even call the run() method. Note that only one of run() or cancel() will be called - and exactly one.