AsyncTaskSvc Class

com.bea.ide.core.asynctask
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

Nested Class Summary

public static interfaceAsyncTaskSvc.I

Field Summary

protected static AsyncTaskSvc.I
instance
AsyncTaskSvc.I
 

Constructor Summary

AsyncTaskSvc()

 

Method Summary

public static AsyncTaskSvc.I
get()
Get the global instance of the AsyncTaskSvc
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Field Detail

instance

protected static AsyncTaskSvc.I instance

 

Constructor Detail

AsyncTaskSvc

public AsyncTaskSvc()
 

Method Detail

get() Method

public static AsyncTaskSvc.I get()
Get the global instance of the AsyncTaskSvc