|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DuplexListener
Application handler for a bidirectional tcp stream
The read stream should only be read by the onRead
thread.
The write stream must be synchronized if it's every written by a thread
other than the serviceRead
Method Summary | |
---|---|
void |
onComplete(DuplexContext context)
Called when the connection closes |
void |
onRead(DuplexContext context)
Called when read data is available |
void |
onTimeout(DuplexContext context)
Called when the connection times out |
Method Detail |
---|
void onRead(DuplexContext context) throws java.io.IOException
java.io.IOException
void onComplete(DuplexContext context) throws java.io.IOException
java.io.IOException
void onTimeout(DuplexContext context) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |