|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES All Classes |
See:
Description
Interface Summary | |
---|---|
Handlet | An inversion-of-control mechanism for implementing a non-blocking network server or client. |
HandletContext | An interface provided by a Handlet container to a handlet. |
Stagelet | An extension to Handlet in order to encapsulate
a "stack frame". |
Class Summary | |
---|---|
AsynchStagelet | A skeletal implementation of an asynchronous stagelet. |
HandletServer | A Handlet container implementing the server-side of a
network protocol. |
StageletStack | A Handlet filter that implements something like a call stack. |
Validators | A few categories of Validator are defined here for use in the implementation. |
Enum Summary | |
---|---|
IoState | The various I/O states of a Handlet . |
Exception Summary | |
---|---|
HandletException | |
HandletStateException |
Facilities for non-blocking network I/O. At the time of this writing, the contents of this package concern a simple architecture for a non-blocking network server.
The handlet container, in turn, takes care of registering (and/or cancelling) interest in the relevant selection event (if any). On receiving selection events, the container invokes each loaded handlet's read or write method, depending on the selection event. The handlet then is supposed to perform the read or write in non-blocking fashion (i.e. it must perform a single read or write operation on the channel, no more).
This simple workflow allows the container to do all I/O in a single thread (although it may be advantageous to use more than one on multi-CPU hardware).
A Stagelet's call stack is represented by a StageletStack instance. The handlet container is unaware of this construct: it is a handlet implementation tool.
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES All Classes |