com.buildforge.services.common.io
Interface IBufferedConnectionCallback


public interface IBufferedConnectionCallback

This interface is used by classes which need to be notified when there is new activity on a buffered connection.


Method Summary
 void process()
          Implementation of the central processing loop for a buffered connection driven by a dispatcher.
 

Method Detail

process

void process()
             throws java.lang.Throwable
Implementation of the central processing loop for a buffered connection driven by a dispatcher. The implementation of this method should make use of the calls listed below to interact with the buffering system. It may return if it does not currently have any more work to perform. The dispatcher will awaken it when the next request starts.

Any exception that is thrown will be saved for the dispatch handler to use as grounds for terminating the connection. Anything innocuous must be properly handled from within the process() method, itself.

Throws:
java.lang.Throwable - any unhandled exception
See Also:
IBufferedConnection.fill(int), IBufferedConnection.flush(), IBufferedConnection.getReadBuffer(), IBufferedConnection.getWriteBuffer()