|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.http.TaskBase
com.sun.grizzly.arp.AsyncProcessorTask
public class AsyncProcessorTask
A Task
that wraps the execution of an asynchronous execution
of a ProcessorTask
. Internally, this class invoke the associated
AsyncExecutor
method to execute the ProcessorTask
life-cycle operations.
Field Summary |
---|
Fields inherited from class com.sun.grizzly.http.TaskBase |
---|
key, selectorHandler, selectorThread, threadPool, type |
Fields inherited from interface com.sun.grizzly.arp.AsyncTask |
---|
COMPLETED, EXECUTE, FINISH, INTERRUPTED, POST_EXECUTE, PRE_EXECUTE |
Fields inherited from interface com.sun.grizzly.http.Task |
---|
ACCEPT_TASK, PROCESSOR_TASK, READ_TASK |
Constructor Summary | |
---|---|
AsyncProcessorTask()
|
Method Summary | |
---|---|
void |
doTask()
Execute the AsyncExecutor based on the stage
of the ProcessorTask execution. |
AsyncExecutor |
getAsyncExecutor()
Get the AsyncExecutor . |
ProcessorTask |
getProcessorTask()
Deprecated. - Use AsyncExecutor.getProcessorTask() |
int |
getStage()
Return the stage of the current execution. |
void |
recycle()
Reset the object. |
void |
setAsyncExecutor(AsyncExecutor asyncExecutor)
Set the AsyncExecutor used to delegate the execution of a ProcessorTask . |
void |
setProcessorTask(ProcessorTask task)
Deprecated. - Use AsyncExecutor.setProcessorTask(com.sun.grizzly.http.ProcessorTask) |
void |
setStage(int stage)
Set the current execution stage. |
Methods inherited from class com.sun.grizzly.http.TaskBase |
---|
call, execute, execute, getSelectionKey, getSelectorHandler, getSelectorThread, getTaskListener, getThreadPool, getType, run, setSelectionKey, setSelectorHandler, setSelectorThread, setTaskListener, setThreadPool |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sun.grizzly.http.Task |
---|
execute, execute, getSelectionKey, getSelectorHandler, getSelectorThread, getThreadPool, getType, setSelectionKey, setSelectorHandler, setSelectorThread, setThreadPool |
Methods inherited from interface java.lang.Runnable |
---|
run |
Methods inherited from interface java.util.concurrent.Callable |
---|
call |
Constructor Detail |
---|
public AsyncProcessorTask()
Method Detail |
---|
public void doTask() throws IOException
AsyncExecutor
based on the stage
of the ProcessorTask
execution.
doTask
in interface Task
IOException
public int getStage()
stage
of the current execution.
getStage
in interface AsyncTask
public void recycle()
recycle
in interface Task
recycle
in class TaskBase
public void setAsyncExecutor(AsyncExecutor asyncExecutor)
AsyncExecutor
used to delegate the execution of a ProcessorTask
.
setAsyncExecutor
in interface AsyncTask
public AsyncExecutor getAsyncExecutor()
AsyncExecutor
.
getAsyncExecutor
in interface AsyncTask
public void setStage(int stage)
public void setProcessorTask(ProcessorTask task)
AsyncExecutor.setProcessorTask(com.sun.grizzly.http.ProcessorTask)
ProcessorTask
used to execute the request processing.
setProcessorTask
in interface AsyncTask
task
- a ProcessorTask
public ProcessorTask getProcessorTask()
AsyncExecutor.getProcessorTask()
ProcessorTask
used to execute the request processing.
getProcessorTask
in interface AsyncTask
ProcessorTask
used to execute the request processing.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |