📄 workertask.java
字号:
package util;
/**
* <code>WorkerTask</code> is implemented by tasks that can be run
* by a <code>Worker</code>.
*
* @author Jonathan Knudsen
*/
public interface WorkerTask {
/**
* This method is called from within the
* <code>Worker</code>'s thread. Note that this method,
* in constrast to <code>java.lang.Runnable</code>'s
* <code>run()</code>method, may throw an exception.
*/
public void run() throws Exception;
/**
* This method may be called at any time. It is the task's
* responsibility to terminate gracefully.
*/
public void cancel();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -