Hi, Noel's description is correct. Please see my additional comments below:
> -----Original Message----- > From: Noel J. Bergman [mailto:[EMAIL PROTECTED] > > How does your proposal contrast/differs/combines with what has > > been referred to on this list as "streamable" codecs? > > See http://issues.apache.org/bugzilla/show_bug.cgi?id=19882 > > The streamable decoders have an interface like: > > public void operation(InputStream in, OutputStream out) > throws Exception; > > which means that the calling thread is going to be blocked on I/O, whereas > Alex's proposed interface is: > > public java.util.List operation(java.nio.ByteBuffer buffer); > > which is called as data arrives. The difference is pull-model (blocking > I/O) vs push-model (non-blocking I/O). > > --- Noel The non-blocking pull model can be used to implement streams on top. The Opposite direction of making a blocking construct appear as non-blocking is not as simple and results in much waste. Alex --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
