com.sun.grizzly.arp
Interface AsyncTask

All Superinterfaces:
Callable, Runnable, Task
All Known Implementing Classes:
AsyncProcessorTask

public interface AsyncTask
extends Task

A Task that wraps the execution of an asynchronous execution of a ProcessorTask.

Author:
Jean-Francois Arcand

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

PRE_EXECUTE

static final int PRE_EXECUTE
See Also:
Constant Field Values

INTERRUPTED

static final int INTERRUPTED
See Also:
Constant Field Values

POST_EXECUTE

static final int POST_EXECUTE
See Also:
Constant Field Values

FINISH

static final int FINISH
See Also:
Constant Field Values

COMPLETED

static final int COMPLETED
See Also:
Constant Field Values

EXECUTE

static final int EXECUTE
See Also:
Constant Field Values
Method Detail

getAsyncExecutor

AsyncExecutor getAsyncExecutor()
Get the AsyncExecutor.


getStage

int getStage()
Return the stage of the current execution.


setAsyncExecutor

void setAsyncExecutor(AsyncExecutor asyncExecutor)
Set the AsyncExecutor used by this Task to delegate the execution of a ProcessorTask.


setProcessorTask

void setProcessorTask(ProcessorTask task)
Deprecated. - Use AsyncExecutor.setProcessorTask(com.sun.grizzly.http.ProcessorTask)

Set the ProcessorTask used to execute the request processing.

Parameters:
task - a ProcessorTask

getProcessorTask

ProcessorTask getProcessorTask()
Deprecated. - Use AsyncExecutor.getProcessorTask()

The ProcessorTask used to execute the request processing.

Returns:
ProcessorTask used to execute the request processing.


Copyright © 2012 Oracle Corporation. All Rights Reserved.