dev@grizzly.java.net

[Grizzly2.0 - Issue 3] Attaching a Connection object to the SelectionKey

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Wed, 18 Jun 2008 15:04:00 -0400

Salut,

my nightmare is back[1] :-) Alexey is proposing to attach a very simple
object called Connection to the SelectionKey. This Connection object
object would persist some connection information when the key is
registered back to the Selector. I've never been a fan of attaching
object to the SelectionKey, and I do think we can reconstruct those
objects between transaction instead of attaching them.

Alexey's proposal is also to get rid of ThreadAttachment (hide the
concept to the users). I was under the impression it was a good idea,
now I'm no longer sure :-)

What peoples thinks?

A+

-- Jeanfrancois