AsyncTaskSvc Class
- public class AsyncTaskSvc
extends Object
This service provides a general mechanism for running tasks asynchronously. Scheduled
tasks may have both a background and forground (EventQueue thread) component.
To use this service the user creates a class that extends DefaultAsyncTask
and overrides the runBackground() method and the optionally
runForeground() and interrupt. Then the
user simply submits the new task to be run as follows.
AsyncTaskSvc.get().addTask(task);
To preempt a submitted task use:
AsyncTaskSvc.get().interruptTask(task);
Do not call task.interrupt() directly. This method gets called
by the AsyncTaskSvc.
Related Topics
DefaultAsyncTask
-
Hierarchy
-
Object
AsyncTaskSvc
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
protected static AsyncTaskSvc.I instance
AsyncTaskSvc
public AsyncTaskSvc()
get() Method
public static AsyncTaskSvc.I get()
Get the global instance of the AsyncTaskSvc