FileDocCategorySizeDatePackage
AsyncTask.javaAPI DocGlassfish v2 API3186Fri May 04 22:37:04 BST 2007com.sun.enterprise.web.connector.grizzly

AsyncTask

public interface AsyncTask implements Task
A Task that wraps the execution of an asynchronous execution of a ProcessorTask.
author
Jean-Francois Arcand

Fields Summary
public static final int
PRE_EXECUTE
public static final int
INTERRUPTED
public static final int
POST_EXECUTE
public static final int
COMPLETED
public static final int
EXECUTE
Constructors Summary
Methods Summary
public AsyncExecutorgetAsyncExecutor()
Get the AsyncExecutor.

public ProcessorTaskgetProcessorTask()
Return the ProcessorTask.

public intgetStage()
Return the stage of the current execution.

public voidsetAsyncExecutor(AsyncExecutor asyncExecutor)
Set the AsyncExecutor used by this Task to delegate the execution of a ProcessorTask.

public voidsetProcessorTask(ProcessorTask processorTask)
Set the ProcessorTask that needs to be executed asynchronously.