|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HandletContext
An interface provided by a Handlet container to a handlet. By now, this is a familiar pattern seen for example in the servlet or applet specs.
Handlet.init(HandletContext)
Method Summary | |
---|---|
void |
doneProcessing()
Callback method invoked by a Handlet when it has finished an asynchronous task and is now ready to do I/O. |
ExecutorService |
executor()
Returns an executor that the Handlet may use for performing asynchronous tasks. |
boolean |
processAsynch()
Returns the container hint as to whether the handlet should try to process non-network I/O tasks asynchronously. |
ByteBuffer |
workBuffer()
Returns a temporary work buffer which the Handlet can use to process I/O (typically reads). |
Method Detail |
---|
ExecutorService executor()
void doneProcessing()
executor()
ByteBuffer workBuffer()
Buffer.clear()
boolean processAsynch()
Handlet.state()
,
IoState.PROCESSING
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |