dev@grizzly.java.net

Re: Latest Grizzly 2.0 updates

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Thu, 09 Oct 2008 18:52:21 +0200

Hi,

>> Hi,
>> recently we made several updates in Grizzly 2.0:
>> 1) introduced Buffer interface, which will be common for all kind
>> of buffers, used in Grizzly
>> 2) changed read/write API according to what proposed Jeanfrancois.
>> Instead of read/write, readAsync/writeAsync, readNow/writeNow
>> methods - now we have just read/write.
>> The I/O mode (blocking/async) could be changed, using
>> Transport.configureBlocking(boolean) for whole transport, or
>> Connection.configureBlocking() for specific connection.
>> 3) completed standalone filter chain implementation. Which works
>> both in synchronous and asynchronous modes.
>> It's possible to do following:
>> filterChain.add(new TransportFilter());
>> filterChain.add(new SSLFilter());
>> filterChain.add(new HttpFilter());
>> ...........................
>> HttpRequest request = new HttpRequest(host, port, url);
>> Future writeFuture = filterChain.write(connection, HttpRequest());
>> Future readFuture = filterChain.read(connection);
>> HttpResponse response = (HttpResponse) readFuture.get(timeout,
>> timeunit);
>
> That one :-) we need to talk....we don't want to load the entire
> http body in memory, but instead just on-demand to avoid OOM.
I think this is common problem for server and client. So, if
HttpFilter will be able to work with StreamFilter, so the message will
be streamed... both client and server will benefit from that.


>>
>> Contributions or feedback are very appreciated! :)
>
> And this email is a perfect example of a blog (hahahahah). Just cut
> and paste and say" Grizzly 2.0 updates :-) Point also to the roadmap
> thread, so external peoples can be attracted to contribute.

:))

Thanks.

WBR,
Alexey.

>
>
> A+
>
> -- JeanBlogcois
>
>
>> Thanks.
>> WBR,
>> Alexey.
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>