com.sun.grizzly.http
Interface AsyncHandler

All Known Implementing Classes:
DefaultAsyncHandler

public interface AsyncHandler

When asynchronous request processing is enabled, the Task must delegate the execution of the request processing to an implementation of this interface.

Author:
Jeanfrancois Arcand

Method Summary
 void addAsyncFilter(AsyncFilter asyncFilter)
          Add a AsyncFilter
 void addToInterruptedQueue(AsyncTask task)
          Add the Task to the interrupted queue.
 String getAsyncExecutorClassName()
          Get the code>AsyncExecutor used by this object.
 void handle(Task task)
          Handle a Task execution.
 boolean removeAsyncFilter(AsyncFilter asyncFilter)
          Remove an AsyncFilter
 void removeFromInterruptedQueue(AsyncTask task)
          Remove the Task from the interrupted queue.
 void returnTask(AsyncTask task)
          Return a Task
 void setAsyncExecutorClassName(String asyncExecutorClassName)
          Set the AsyncExecutor used by this object.
 

Method Detail

handle

void handle(Task task)
Handle a Task execution.


addToInterruptedQueue

void addToInterruptedQueue(AsyncTask task)
Add the Task to the interrupted queue.


removeFromInterruptedQueue

void removeFromInterruptedQueue(AsyncTask task)
Remove the Task from the interrupted queue.


setAsyncExecutorClassName

void setAsyncExecutorClassName(String asyncExecutorClassName)
Set the AsyncExecutor used by this object.


getAsyncExecutorClassName

String getAsyncExecutorClassName()
Get the code>AsyncExecutor used by this object.


addAsyncFilter

void addAsyncFilter(AsyncFilter asyncFilter)
Add a AsyncFilter


removeAsyncFilter

boolean removeAsyncFilter(AsyncFilter asyncFilter)
Remove an AsyncFilter


returnTask

void returnTask(AsyncTask task)
Return a Task



Copyright © 2009 SUN Microsystems. All Rights Reserved.