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

AsyncExecutor

public interface AsyncExecutor
A interface used to define the execution of a AsyncTask By default, AsyncTask will invoke an implementation of this interface in this order: (1) preExecute() (2) interrupt() (3) postExecute() Implementation of this interface must decide when a task must be interrupted.
author
Jeanfrancois Arcand

Fields Summary
Constructors Summary
Methods Summary
public voidaddAsyncFilter(AsyncFilter asyncFilter)
Add a AsyncFilter

public booleanexecute()
Execute the main operation on

return
true if the processing can continue, false if it needs to be interrupted.

public AsyncHandlergetAsyncHandler()
Get the AsyncHandler who drive the asynchronous process.

public AsyncTaskgetAsyncTask()
Get the AsycnProcesssorTask.

public booleaninterrupt()
Execute some operations on the AsycnProcesssorTask and then interrupt it.

return
true if the processing can continue, false if it needs to be interrupted.

public booleanpostExecute()
Post-execute some operations in the AsycnProcesssorTask associated.

return
true if the processing can continue.

public booleanpreExecute()
Pre-execute some operations in the AsycnProcesssorTask associated.

return
true if the processing can continue.

public booleanremoveAsyncFilter(AsyncFilter asyncFilter)
Remove an AsyncFilter

public voidsetAsyncHandler(AsyncHandler asyncHandler)
Set the AsyncHandler who drive the asynchronous process.

public voidsetAsyncTask(AsyncTask task)
Set the AsycnProcesssorTask.