users@grizzly.java.net

Re: WG: Re: WG: Re: Asynchronous Request Processing with TCPIP

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Fri, 04 Jul 2008 15:18:15 -0400

John ROM wrote:
> Hi Jeanfrancois,
>>> So more a Context.detach(); So I wonder if you could do somethink like:
>>> suspend() {
>>> detach();
>>> ctx.setKeyRegistrationState(KeyRegistrationState.NONE))
>> Here you means KeyRegistrationState,REGISTER, right?
>>
> Ups yes for sure!
>> So in your case I would think you can do:
>>
>> Context.suspend();
>> Thread.detach();
>
> // We suspend, but we still want to get OP_READ event
>> ctx.setKeyRegistrationState(KeyRegistrationState.REGISTER);
>
>
>> How does it sound? Let me know as I will make sure I can support your
>> scenario before commiting the code :-)
> Terrific!
>
> No super many thanks!!,
> It will make my code cleaner!!

Done. Available as 1.8.2-SNAPSHOT :-)

A+

-- Jeanfrancois



>
>