dev@grizzly.java.net

Re: Latest Grizzly 2.0 updates

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Thu, 09 Oct 2008 12:49:02 -0400

Salut,

Oleksiy Stashok wrote:
> 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.

>
>
> We're planning to have more interesting features: Stream filter, smart
> parser filter, HTTP support...

I like the stream filter!


> 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.

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
>