|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Stagelet
An extension to Handlet
in order to encapsulate
a "stack frame".
Handlet.init(HandletContext)
,
Handlet.read(java.nio.channels.ScatteringByteChannel)
, or
Handlet.write(java.nio.channels.GatheringByteChannel)
method is
invoked.
If any of the above methods pushes another stagelet asynchronously, then
the method must return IoState.PROCESSING.
StageletStack
Method Summary | |
---|---|
IoState |
unwind(IoState preState)
Callback method invoked when the previous stage[let] returned DONE. |
Methods inherited from interface com.faunos.util.net.Handlet |
---|
discard, init, read, state, write |
Method Detail |
---|
IoState unwind(IoState preState)
Handlet.discard()
method on the super
interface.
preState
- the state of the previous stage prior to its flipping to
DONE
Stagelet
on the execution
stack, then that stage's unwind()
method will also
be invoked with the same preState
argument.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |