workertask.java

来自「tRSS是MIDP的的RSS客户端。用户可以从一些新闻网站和个人数据库和feed」· Java 代码 · 共 31 行

JAVA
31
字号
/*
 * WorkerTask.java
 *
 * Created on January 14, 2006, 3:46 PM
 */

package com.dtw.midp.util;

/**
 *
 * @author psaingtong
 * 
 *
 */
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 + =
减小字号Ctrl + -
显示快捷键?