Methods Summary |
---|
public void | addTaskListener(TaskListener task)Add a Task to this class.
|
public void | cancelTask(java.lang.String message, java.lang.String httpCode)Cancel the task.
|
public void | clearTaskListeners()Remove all listeners
|
public void | doTask()Execute the task.
|
public void | execute()Execute this task by using the associated Pipeline .
If the Pipeline is null, the task's doTask()
method will be invoked.
|
public KeepAliveStats | getKeepAliveStats()Gets the KeepAliveStats associated with this task.
|
public Pipeline | getPipeline()Return the pipeline used by this object.
|
public boolean | getRecycle()Return true if this Task will be recycled.
|
public org.apache.coyote.RequestGroupInfo | getRequestGroupInfo()Gets the RequestGroupInfo from this task.
|
public java.nio.channels.SelectionKey | getSelectionKey()Return the SelectionKey associated with this tasks.
|
public SelectorThread | getSelectorThread()Returns the SelectorThread used by this task.
|
public java.util.ArrayList | getTaskListeners()Return the ArrauList containing the listeners.
|
public int | getType()Return this Tash type.
|
public boolean | isMonitoringEnabled()Returns true if monitoring has been enabled, false
otherwise.
|
public void | recycle()Recycle this task.
|
public void | removeTaskListener(TaskListener task)Remove a Task to this class.
|
public void | setPipeline(Pipeline pipeline)Set the pipeline on which Worker Threads will synchronize.
|
public void | setRecycle(boolean recycle)Recycle the Task after every doTask invokation.
|
public void | setSelectionKey(java.nio.channels.SelectionKey key)Set the SelectionKey
|
public void | setSelectorThread(SelectorThread selectorThread)Set the SelectorThread used by this task.
|