|
||||||||||
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 |
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()
Return the ProcessorTask . |
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 processorTask)
Set the ProcessorTask that needs to be executed
asynchronously. |
Methods inherited from interface com.sun.grizzly.http.Task |
---|
addTaskListener, cancelTask, clearTaskListeners, doTask, execute, getKeepAliveStats, getPipeline, getRecycle, getRequestGroupInfo, getSelectionKey, getSelectorThread, getTaskListeners, getType, isMonitoringEnabled, recycle, removeTaskListener, setPipeline, setRecycle, setSelectionKey, setSelectorThread |
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 COMPLETED
static final int EXECUTE
Method Detail |
---|
AsyncExecutor getAsyncExecutor()
AsyncExecutor
.
ProcessorTask getProcessorTask()
ProcessorTask
.
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 processorTask)
ProcessorTask
that needs to be executed
asynchronously.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |