FileDocCategorySizeDatePackage
ReadTask.javaAPI DocGlassfish v2 API3263Fri May 04 22:37:04 BST 2007com.sun.enterprise.web.connector.grizzly

ReadTask

public interface ReadTask implements Task
Main Task to handle OP_READ.
author
Jeanfrancois Arcand

Fields Summary
Constructors Summary
Methods Summary
public voidattachProcessor(ProcessorTask processorTask)
Force this task to always use the same ProcessorTask instance.

public voiddetachProcessor()
Return the ProcessorTask to the pool.

public java.nio.ByteBuffergetByteBuffer()
Return the underlying ByteBuffer used by this class.

public longgetIdleTime()
Return the time in milliseconds this Task is allowed to be idle.

public voidinitialize(StreamAlgorithm algorithm, boolean useDirectByteBuffer, boolean useByteBufferView)

public voidsetBytesAvailable(boolean bytesAvailable)
If the attached byteBuffer was already filled, tell the Algorithm to re-use the bytes.

public voidsetIdleTime(long time)
Set the time in milliseconds this Task is allowed to be idle.

public voidterminate(boolean keepAlive)
Complete the processing.