|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Task
Wrapper object used by the WorkerThread
Field Summary | |
---|---|
static int |
ACCEPT_TASK
|
static int |
PROCESSOR_TASK
|
static int |
READ_TASK
|
Method Summary | |
---|---|
void |
addTaskListener(TaskListener task)
Add a Task to this class. |
void |
cancelTask(String message,
String httpCode)
Cancel the task. |
void |
clearTaskListeners()
Remove all listeners |
void |
doTask()
Execute the task. |
void |
execute()
Execute this task by using the associated Pipeline . |
KeepAliveStats |
getKeepAliveStats()
Gets the KeepAliveStats associated with this task. |
Pipeline |
getPipeline()
Return the pipeline used by this object. |
boolean |
getRecycle()
Return true if this Task will be recycled. |
RequestGroupInfo |
getRequestGroupInfo()
Gets the RequestGroupInfo from this task. |
SelectionKey |
getSelectionKey()
Return the SelectionKey associated with this tasks. |
SelectorThread |
getSelectorThread()
Returns the SelectorThread used by this task. |
ArrayList |
getTaskListeners()
Return the ArrauList containing the listeners. |
int |
getType()
Return this Tash type. |
boolean |
isMonitoringEnabled()
Returns true if monitoring has been enabled, false
otherwise. |
void |
recycle()
Recycle this task. |
void |
removeTaskListener(TaskListener task)
Remove a Task to this class. |
void |
setPipeline(Pipeline pipeline)
Set the pipeline on which Worker Threads will synchronize. |
void |
setRecycle(boolean recycle)
Recycle the Task after every doTask invokation. |
void |
setSelectionKey(SelectionKey key)
Set the SelectionKey |
void |
setSelectorThread(SelectorThread selectorThread)
Set the SelectorThread used by this task. |
Methods inherited from interface java.lang.Runnable |
---|
run |
Methods inherited from interface java.util.concurrent.Callable |
---|
call |
Field Detail |
---|
static final int ACCEPT_TASK
static final int READ_TASK
static final int PROCESSOR_TASK
Method Detail |
---|
int getType()
Tash
type.
void doTask() throws IOException
IOException
void cancelTask(String message, String httpCode)
void setSelectionKey(SelectionKey key)
SelectionKey
SelectionKey getSelectionKey()
SelectionKey
associated with this tasks.
void setSelectorThread(SelectorThread selectorThread)
SelectorThread
used by this task.
SelectorThread getSelectorThread()
SelectorThread
used by this task.
RequestGroupInfo getRequestGroupInfo()
RequestGroupInfo
from this task.
boolean isMonitoringEnabled()
true
if monitoring has been enabled, false
otherwise.
KeepAliveStats getKeepAliveStats()
KeepAliveStats
associated with this task.
void addTaskListener(TaskListener task)
Task
to this class.
void removeTaskListener(TaskListener task)
Task
to this class.
void execute()
Pipeline
.
If the Pipeline
is null, the task's doTask()
method will be invoked.
void recycle()
ArrayList getTaskListeners()
ArrauList
containing the listeners.
void clearTaskListeners()
void setRecycle(boolean recycle)
boolean getRecycle()
true
if this Task
will be recycled.
void setPipeline(Pipeline pipeline)
Pipeline getPipeline()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |