dev@grizzly.java.net

SelectionKeyHandler without keep alive

From: charlie hunt <charlie.hunt_at_sun.com>
Date: Fri, 15 Feb 2008 08:43:10 -0600

Is there an implementation of a SelectionKeyHandler without keep alive ?

If not, would it make sense to insert into the hierarchy between the
SelectionKeyHandler interface and DefaultSelectionKeyHandler a
SelectionKeyHandler that does not implement keep alive?

Today we have:

      SelectionKeyHandler (interface)
               |
   DefaultSelectionKeyHandler (implements SelectionKeyHandler and
integrates keep alive)

How about doing this?

               SelectionKeyHandler (interface)
                       |
            BaseSelectionKeyHandler (implements SelectionKeyHandler, but
no keep alive)
                      |
           DefaultSelectionKeyHandler (extends BaseSelectionKeyHandler
with keep alive support)

This would allow one to easily configure a Grizzly transport where keep
alive is not needed / required.

Or, maybe I missed such an existing class already in the Grizzly?

What do you think?

charlie ...