Methods Summary |
---|
public void | attachProcessor(ProcessorTask processorTask)Force this task to always use the same ProcessorTask instance.
|
public void | detachProcessor()Return the ProcessorTask to the pool.
|
public java.nio.ByteBuffer | getByteBuffer()Return the underlying ByteBuffer used by this class.
|
public long | getIdleTime()Return the time in milliseconds this Task is allowed to be idle.
|
public void | initialize(StreamAlgorithm algorithm, boolean useDirectByteBuffer, boolean useByteBufferView)
|
public void | setBytesAvailable(boolean bytesAvailable)If the attached byteBuffer was already filled, tell the
Algorithm to re-use the bytes.
|
public void | setIdleTime(long time)Set the time in milliseconds this Task is allowed to be idle.
|
public void | terminate(boolean keepAlive)Complete the processing.
|