com.caucho.servlet
Interface DuplexListener


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

onRead

void onRead(DuplexContext context)
            throws java.io.IOException
Called when read data is available

Throws:
java.io.IOException

onComplete

void onComplete(DuplexContext context)
                throws java.io.IOException
Called when the connection closes

Throws:
java.io.IOException

onTimeout

void onTimeout(DuplexContext context)
               throws java.io.IOException
Called when the connection times out

Throws:
java.io.IOException