|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsyncTask
A Task
that wraps the execution of an asynchronous execution
of a ProcessorTask
.
Field Summary | |
---|---|
static int |
COMPLETED
|
static int |
EXECUTE
|
static int |
FINISH
|
static int |
INTERRUPTED
|
static int |
POST_EXECUTE
|
static int |
PRE_EXECUTE
|
Fields inherited from interface com.sun.grizzly.http.Task |
---|
ACCEPT_TASK, PROCESSOR_TASK, READ_TASK |
Method Summary | |
---|---|
AsyncExecutor |
getAsyncExecutor()
Get the AsyncExecutor . |
ProcessorTask |
getProcessorTask()
Deprecated. - Use AsyncExecutor.getProcessorTask() |
int |
getStage()
Return the stage of the current execution. |
void |
setAsyncExecutor(AsyncExecutor asyncExecutor)
Set the AsyncExecutor used by this Task
to delegate the execution of a ProcessorTask . |
void |
setProcessorTask(ProcessorTask task)
Deprecated. - Use AsyncExecutor.setProcessorTask(com.sun.grizzly.http.ProcessorTask) |
Methods inherited from interface com.sun.grizzly.http.Task |
---|
doTask, execute, execute, getSelectionKey, getSelectorHandler, getSelectorThread, getThreadPool, getType, recycle, setSelectionKey, setSelectorHandler, setSelectorThread, setThreadPool |
Methods inherited from interface java.lang.Runnable |
---|
run |
Methods inherited from interface java.util.concurrent.Callable |
---|
call |
Field Detail |
---|
static final int PRE_EXECUTE
static final int INTERRUPTED
static final int POST_EXECUTE
static final int FINISH
static final int COMPLETED
static final int EXECUTE
Method Detail |
---|
AsyncExecutor getAsyncExecutor()
AsyncExecutor
.
int getStage()
stage
of the current execution.
void setAsyncExecutor(AsyncExecutor asyncExecutor)
AsyncExecutor
used by this Task
to delegate the execution of a ProcessorTask
.
void setProcessorTask(ProcessorTask task)
AsyncExecutor.setProcessorTask(com.sun.grizzly.http.ProcessorTask)
ProcessorTask
used to execute the request processing.
task
- a ProcessorTask
ProcessorTask getProcessorTask()
AsyncExecutor.getProcessorTask()
ProcessorTask
used to execute the request processing.
ProcessorTask
used to execute the request processing.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |