public interface DuplexListener
onRead thread.
 
 The write stream must be synchronized if it's every written by a thread
 other than the serviceRead| Modifier and Type | Method and Description | 
|---|---|
| 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 | 
void onRead(DuplexContext context) throws java.io.IOException
java.io.IOExceptionvoid onComplete(DuplexContext context) throws java.io.IOException
java.io.IOExceptionvoid onTimeout(DuplexContext context) throws java.io.IOException
java.io.IOException