|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReadTask
Main Task to handle OP_READ.
| Field Summary |
|---|
| Fields inherited from interface com.sun.enterprise.web.connector.grizzly.Task |
|---|
ACCEPT_TASK, PROCESSOR_TASK, READ_TASK |
| Method Summary | |
|---|---|
void |
attachProcessor(ProcessorTask processorTask)
Force this task to always use the same ProcessorTask instance. |
void |
detachProcessor()
Return the ProcessorTask to the pool. |
ByteBuffer |
getByteBuffer()
Return the underlying ByteBuffer used by this class. |
long |
getIdleTime()
Return the time in milliseconds this Task is allowed to be idle. |
void |
initialize(StreamAlgorithm algorithm,
boolean useDirectByteBuffer,
boolean useByteBufferView)
|
void |
setBytesAvailable(boolean bytesAvailable)
If the attached byteBuffer was already filled, tell the Algorithm to re-use the bytes. |
void |
setIdleTime(long time)
Set the time in milliseconds this Task is allowed to be idle. |
void |
terminate(boolean keepAlive)
Complete the processing. |
| Methods inherited from interface com.sun.enterprise.web.connector.grizzly.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 |
| Method Detail |
|---|
void attachProcessor(ProcessorTask processorTask)
ProcessorTask instance.
void detachProcessor()
ProcessorTask to the pool.
ByteBuffer getByteBuffer()
ByteBuffer used by this class.
void initialize(StreamAlgorithm algorithm,
boolean useDirectByteBuffer,
boolean useByteBufferView)
void setBytesAvailable(boolean bytesAvailable)
void terminate(boolean keepAlive)
void setIdleTime(long time)
Task is allowed to be idle.
long getIdleTime()
Task is allowed to be idle.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||