Hi Oleg,

> I will be doing a lot of work on HttpCore NIO in the coming weeks, so
> IOReactor is very likely to undergo some major changes. Please do feel
> free to add more methods to the interface and/or the impl class if you
> think something is missing.

I won't have time to do implementation work there.

>>To better integrate with NIO functionality, we could also add
>>getSelector() to the IOReactor interface and getSelectionKey()
>>to the IOSession interface. Does the latter make sense?
> 
> I do not know. I suspect direct manipulation of SelectionKey and
> Selector is very likely to break implementations of those interfaces. I
> would probably avoid exposing low level NIO primitives unless we have a
> very strong case for doing otherwise.

If I understood the API correctly, something must be registered
with a Selector so that the IOReactor gets any events to be
handled at all. On the other hand, that could be done by
implementation specific reactor methods rather than by exposing
the Selector in the interface. I'll wait and see how things
shape up in the future.

cheers,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to